formats

Use du to show directory sizes only

Use du to show directory sizes only | du can show directory sizes only. This is helpful to get a quick glance at what directories are taking up space. Here’s the command I like to use: $ du -sh * Here is what it looks like in action from /var on one of my servers: stmiller@li166-66:/var$ sudo du -sh * 38M backups 48M

formats

Use du command to see file and folder sizes

Use du command to see file and folder sizes | How can I see the size of files and folders from the command line? Use the command du to quickly list sizes! A command I like to use is: du -hsc * This will provide a listing of file and folder sizes from your current working directory, including a total size amount at the bottom.

Home Posts tagged "du"