Editing Ls
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | <code>[[w:ls|ls]]</code> is a command to list computer files in [[Linux]] and Unix and Unix-like operating systems. | |
− | <code>[[ | ||
− | |||
== Linux Examples == | == Linux Examples == | ||
* <code>ls</code> | * <code>ls</code> | ||
− | * | + | * <code>ls -lhaR</code> |
− | + | * One line listing with sizes using ls and find: <code>[[linux/Basic commands/ls|ls]] -ldh $([[linux/Basic commands/find|find]] /path/to/search/)</code> | |
− | + | * Sort by size: | |
− | + | ** <code>ls -lRh | grep '^-' | sort -rnk5</code> | |
− | + | ** Including full path: <code>ls -ldh $([[linux/Basic commands/find|find]] ./) | sort -rnk5</code> | |
− | |||
− | * One line listing with sizes using ls and find: <code>[[ls]] -ldh $([[find]] /path/to/search/)</code> | ||
− | * Sort by | ||
− | ** <code>ls - | ||
− | |||
− | ** Including full path: <code>ls - | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == Related commands == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == Related | ||
− | |||
* <code>[[find]]</code> | * <code>[[find]]</code> | ||
* <code>[[du]]</code> | * <code>[[du]]</code> | ||
* <code>[[df]]</code> | * <code>[[df]]</code> | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
− | |||
* {{Linux filesystem commands}} | * {{Linux filesystem commands}} | ||
− | |||
− | |||
[[Category:Linux commands]] | [[Category:Linux commands]] |
Advertising: