Introduction to UNIX commands part II

Contents: Learning basic Linux commands

Duration: 3 Hours

Important Commands:

Exercises

  1. Change permissions for a given file in 2 ways.
  2. Study ls -l in /sbin and /home write your observations.
  3. Count the number of files in the subdirectories in the root using ls -l and wc.
  4. Create a text file containing at least 10 words, one word per line, along with some repeated words.
    • (i) Extract the unique words from the text file and save it as a separate file.
    • (ii) Sort the file and write the output to a separate file.
    • (iii) How do you extract from the file the unique words in a sorted order?
  5. Create a plain text file and an odt file with the same text contents. Apply ls -l and write your observations.
Back to Course List