Nono.MA

Get human readable sizes of files and folders in the current directory

JUNE 19, 2022

Here's a simple command to get human-readable sizes of files and folders inside of the current directory. (I've tested it on macOS' Terminal and Linux.)

du -sh -- *
# 124M	backups
# 523M	downloads
# 1.8G	recordings-hijack
# 673M	recordings-obs
# 392K	recordings-zoom
# 403M	settings

Note that you may have to sudo if you're trying to get sizes for files that require sudo permissions.

BlogCodeCliLinux