ls

linux

http://www.thegeekstuff.com/2009/07/linux-ls-command-examples/

List all files (including hidden files)

ls -a

List almost all files (except . and ..):

ls -A

List files using long listing format:

ls -l

List directory but not its content:

ls -ld

List files by size:

ls -S

List files by modification time (newest to oldest):

ls -t

Reverse order while sorting:

ls -r

List files using access time instead of modification time:

ls -u

Show file inode:

ls -i
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License