A utility in Unix-like systems such as Linux used for listing files and directories.
A utility in Unix and Unix-like operating systems used for listing files and directories. It is analogous to the dir
command used in DOS and Windows.
Most Use Action
Option - Action
-a - list hidden files
-d - list the name of the current directory
-F - show directories with a trailing '/'
executable files with a trailing '*'
-g - show group ownership of file in long listing
-i - print the inode number of each file
-l - long listing giving details about files
and directories
-R - list all subdirectories encountered
-t - sort by time modified instead of name
Documentation
- Single UNIX version 2
- Open Group Base Specifications Issue 7 (POSIX 1003.1-2008)
- GNU ls (as found on Linux)