Difference between revisions of "Ls"
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
== See also == | == See also == | ||
* {{Linux filesystem commands}} | * {{Linux filesystem commands}} | ||
+ | * {{du}} | ||
[[Category:Linux commands]] | [[Category:Linux commands]] |
Revision as of 08:00, 30 January 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
- File system,
du, df, find, ls, mkdir, touch, locate
du, du -hs
, Disk space usage,df
,ls
,tree
,find
,docker system df
,journalctl --disk-usage
, No space left on device, ENOSPC,sar -F
,growpart
,resize2fs
, ncdu, duf, dua-cli
Advertising: