Ls: Difference between revisions
From Leechfinger
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ ls -lgo --sort=extension | $ ls -lgo --sort=extension | ||
// or sort by version | // or sort by version | ||
$ ls -lgo --sort=version | $ ls -lgo --sort=version | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Commands]] | [[Category:Commands]] |
Revision as of 17:41, 3 May 2025
Show only directories
$ ls -d */
Newest files first
$ ls -lt
File size and sort
$ ls -sSh
Show modification time
$ ls -lgot --time-style=long-iso
Sorting files by extension/version
$ ls -lgo --sort=extension
// or sort by version
$ ls -lgo --sort=version