DSI TECH BYTES

Linux Drive Space Check

Checking drive space in Linux helps you monitor storage usage and manage files efficiently. This concise guide shows you how to check drive space using the command line.

Step 1: Open the Terminal

Access the terminal with Ctrl + Alt + T or search for “Terminal” or “Konsole” in your system’s application menu.

Step 2: Check Drive Space

There are several commands you can use to check drive space in Linux. Here are two popular options:

Option 1: df Command

The df command displays disk space usage for all mounted filesystems. Enter the following command to get a human-readable output:

bashCopy codedf -h

The output will show the filesystem, size, used space, available space, percentage used, and the mount point.

Option 2: du Command

The du command estimates file space usage. To check the total size of a specific directory, enter:

du -sh /path/to/directory

Replace /path/to/directory with the directory path you want to check.

That’s it! You’ve learned how to check drive space in Linux using the command line. Regularly monitoring storage usage helps maintain an organized and efficient system.

Facebook
Twitter
LinkedIn
Reddit
Email

Contact Us