Managing Your Disk Usage

If you're on a system where you need to worry about disk usage, have a disk quota (we learned about this in the last lesson) that you must remain under, or are just curious about how much space your files are taking up, there are a number of ways for you to look at this data. These commands are detailed in the following list:

  • ls— Referring back to Lesson 4, “The File System Explained,” you know that you can use the ls command with the -l option to display disk usage for a file or files. If you need to scan quickly through your files to see which ones are taking up the most space, this is a quick way to do it.

  • find— In Lesson 5, “File System Navigation Techniques,” you were introduced to using the find command to find ...

Get SAMS Teach Yourself Unix in 10 Minutes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.