O'Reilly logo

SAMS Teach Yourself Unix in 10 Minutes by Robert Shimonski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required