List size of files and directories
11 March 2022 (Updated 11 March 2022)
-a
: include files and directories.-h
: print sizes in human readable form (e.g.,4M
instead of4000
).-d1
: restrict contents to those that are one level deep in current path ( i.e. don’t search recursively)
Example output:
Bonus: add shell alias
Add the following to a file your shell will source (e.g., .bashrc
or .zshrc
).
Tagged:
Unix
Thanks for your comment . Once it's approved, it will appear here.
Leave a comment