List directory contents (LINUX)

ls [options] [file/directory]

-a - do not hide entries starting with .
--author - print the author of each file
-b, --escape - print octal escapes for nongraphic characters
-B, --ignore-backups - do not list implied entries ending with ~
-c with -lt: sort by, and show, last modification time
-C - list entries by columns
-d - list directory entries instead of contents
-D - generate output designed for Emacs' dired mode
-f - do not sort, enable -aU, disable -lst
-F --classify
append indicator (one of */=@) to entries
-g - similar to -l, but do not list owner
-G, --no-group - inhibit display of group information
-i --inode
print index number of each file
-I --ignore=PATTERN
do not list implied entries matching shell PATTERN
-l - use a long listing format
-m - fill width with a comma separated list of entries
-o similar to -l, but do not list group information
-p, --file-type
append indicator (one of /=@) to entries
-q, --hide-control-chars
print ? instead of non graphic characters
-r --reverse - reverse order while sorting
-R --recursive - list subdirectories recursively
-s, --size - print size of each file, in blocks
-S - sort by file size
-t - sort by modification time
-U - do not sort; list entries in directory order
-v - sort by version
-w, --width=COLS
assume screen width instead of current value
-x - list entries by lines instead of by columns
-X - sort alphabetically by entry extension
-1 - list one file per line
--version - version information and exit

No comments:

Recent Posts