Difference between revisions of "Ls"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 1: Line 1:
 
<code>[[wikipedia:ls|ls]]</code> is a command to list computer files in [[Linux]] and Unix and Unix-like operating systems.
 
<code>[[wikipedia:ls|ls]]</code> is a command to list computer files in [[Linux]] and Unix and Unix-like operating systems.
 +
* Man page: http://man7.org/linux/man-pages/man1/ls.1.html
  
  

Revision as of 16:54, 20 April 2020

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 -lR | grep '^-' | sort -rnk5 (sort will not work if ls is used with -h)
    • Including full path: ls -ld $(find ./) | sort -rnk5
-su: /bin/ls: Argument list too long

Related commands


See also

Advertising: