Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/books/admin_guide/03-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,20 +479,20 @@ The main options of the `ls` command are:
| ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| `-a` | Displays all files, even hidden ones. Hidden files in Linux are those beginning with `.`. |
| `-i` | Displays inode numbers. |
| `-l` | Displays a vertical list of files with additional information formatted in columns. |
| `-l` | Use a long listing format, that is, each line displays long format information for a file or directory. |

The `ls` command, however, has a lot of options (see `man`):

| Option | Information |
| ------ | ------------ |
| `-d` | Displays information about a directory instead of listing its contents. |
| `-g` | Displays UID and GID rather than owner names. |
| `-h` | Displays file sizes in the most appropriate format (byte, kilobyte, megabyte, gigabyte, ...). `h` stands for Human Readable. |
| `-s` | Displays the number of blocks occupied by the file. One block equals 400K. |
| `-g` | Like -l option, but do not list owner. |
| `-h` | Displays file sizes in the most appropriate format (byte, kilobyte, megabyte, gigabyte, ...). `h` stands for Human Readable. Needs to be used with -l option. |
| `-s` | Displays the allocated size of each file, in blocks. In the GNU/Linux operating system, "block" is the smallest unit of storage in the file system, one block equals 4096Byte. |
| `-A` | Displays all files in the directory except `.` and `..` |
| `-R` | Displays the contents of subdirectories recursively. |
| `-F` | Displays the type of files. Prints a `/` for a directory, `*` for executables, `@` for a symbolic link, and nothing for a text file. |
| `-X` | Sorts files according to their extensions. |
| `-X` | Sorts files according to their extensions. |

* Description of columns generated by running the `ls -lia` command:

Expand Down