Skip to Content
Small, Sharp Software Tools
book

Small, Sharp Software Tools

by Brian P. Hogan
June 2019
Intermediate to advanced
328 pages
7h 27m
English
Pragmatic Bookshelf
Content preview from Small, Sharp Software Tools

Identifying Available Disk Space

Every file you save takes up additional disk space, and while using the ls -lh command will tell you how much space the files in a directory consume, it doesn’t give you a holistic view of the filesystem. The df and du commands will give you more insight into where your space is going. These commands represent disk space and usage in slightly different ways.

The df command will show you the filesystems, size, used space, available space, and where it’s mounted on the filesystem. By default, it shows everything in bytes. If you use the -h flag, you’ll see all of the sizes represented clearly, similarly to how the -h flag worked for the ls command. Execute the df -h command to see the results on your system:

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The VimL Primer

The VimL Primer

Benjamin Klein
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9781680507003Errata Page