Skip to content

Instantly share code, notes, and snippets.

@suuuzi
Created April 26, 2016 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suuuzi/b32b8358b4a1718cc06a4429a5817cee to your computer and use it in GitHub Desktop.
Save suuuzi/b32b8358b4a1718cc06a4429a5817cee to your computer and use it in GitHub Desktop.
ls -a list all files including hidden file starting with '.'
ls --color colored list [=always/never/auto]
ls -d list directories - with ' */'
ls -F add one char of */=>@| to enteries
ls -i list file's inode index number
ls -l list with long format - show permissions
ls -la list long format including hidden files
ls -lh list long format with readable file size
ls -ls list with long format with file size
ls -r list in reverse order
ls -R list recursively directory tree
ls -s list file size
ls -S sort by file size
ls -t sort by time & date
ls -X sort by extension name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment