Jump to content

Linux/Basic commands/ls

From Wikiversity

ls is a command to list computer files in Linux and Unix and Unix-like operating systems.


Linux Examples

[edit | edit source]
  • ls
  • ls -lhaR
  • One line listing with sizes using ls and find: ls -ldh $(find /path/to/search/)
  • Sort by size:
    • ls -lRh | sort -rnk5
    • Including full path: ls -ldh $(find ./) | sort -rnk5

See also

[edit | edit source]