Ls: Difference between revisions

From Leechfinger
Jump to navigationJump to search
Qais (talk | contribs)
No edit summary
Qais (talk | contribs)
No edit summary
Line 5: Line 5:
=== File size and sort ===
=== File size and sort ===
<syntaxhighlight lang="bash">$ ls -sSh</syntaxhighlight>
<syntaxhighlight lang="bash">$ ls -sSh</syntaxhighlight>
=== Show modification time ===
<syntaxhighlight lang="bash">$ ls -lgot --time-style=long-iso</syntaxhighlight>
[[Category:Commands]]
[[Category:Commands]]

Revision as of 17:38, 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