Find the Size of Every File In a Directory In Linux

There are a few ways to do this. As a one shot, the following works nicely:


du -sh *


If you’re piping commands on the command line, though, absolute paths to each file can be more useful:

find `pwd` | xargs du -sh 

Author: jamandbees

There's just this whole, like, wha? Out there in the world, y'know? The jam and the bees, please.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: