This page demistrates ls command's different options. *Note that these are only the MAIN options that most users use, there are more.
Explanation |
Command/Output |
-l option
This option displays information about the files that are listed, and reads left to right as such: -rwxr (permission for the owner) -xr (permission for the group) -x (permission for others) 1 (the number of links) dwd8721
(name of the user) 135 (I/O block size) Month file was created day file was created time the file was created (in the 24-hr time period). *Notice that all the files are listed in
chronological order based on the date the file was created.
|
 |
-lt option
This option displays the total (remember t for total) number of files from the current directory down. The total for the files is shown on the second line right after the command.
|
 |
-ltr option
This option displays the total number of files from the current directory down. The extra r (for reverse) lists the output in reverse chronological order.
|
 |
-a option
This option displays all the files, including the hidden files, in a directory. Files beginning with a period (.) are usually hidden files.
|
 |