Ls

From wikieduonline
Revision as of 07:38, 7 January 2020 by Welcome (talk | contribs) (Created page with "<code>ls</code> is a command to list computer files in Linux and Unix and Unix-like operating systems. == Linux Examples == * <code>ls</code> * <code>ls -lhaR</...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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


Linux Examples

  • 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

Advertising: