Chapter 2: Directories and files

Manuals

face Robert Craven

To find more detailed information about ls, type:

username@MACHINE:~$ man ls

The command man opens the manual page for a given program. This gives the detailed behaviour, and all options, for the program.

Scroll up and down through the manual pages using and . Exit the manual page using Q.

Exercise 6

  1. Use the manual page for ls to find how to sort its output by file extension, and then do this for /etc.
  2. Use the manpage for ls to find out how to list its output by order of date modified, and then do this for /etc.
  3. What does mkdir do? Use its manpage to find out.