Administrators of Linux systems must often determine how the disk space is being utilized in their system. Learning how to effectively use the du (disk usage) command makes it easy to quickly hone in on the directories that are consuming the most disk space. In this video, you will learn how to run the du command combined with a sort command and a sed command, to quickly show the top 5 directories taking up the most space in your file system.

Learn more about useful shell commands in Arnold Robbins' video course Robust Shell Scripting. Start now with a free 10-day trial to Safari.

Arnold Robbins is a professional software engineer who has worked with UNIX systems since 1980. The author of more than a dozen O'Reilly titles, including Linux in a Nutshell, Effective awk Programming, and the Bash Pocket Reference, Arnold is a master communicator who holds a BA in Information Science from Yeshiva University and an MS in Computer and Information Science from Georgia Tech.

Article image: Screen from "How can I find out where all my disk space has gone on a Linux file system?" (source: O'Reilly).