1. View Disk Usage
2. Check Disk Usage of a Specific Directory
3. Check Inode Usage

Knowing your disk usage and inode count on Linux systems is essential for effective system management and performance monitoring. In this guide, you'll learn how to quickly check disk space and inode usage using simple terminal commands.

1. View Disk Usage

To see disk usage, use the df command with the -h (human-readable) option to display sizes in a readable format:

df -h

This command shows total size, used space, and available space for all mounted filesystems.

2. Check Disk Usage of a Specific Directory

To check the disk usage of a specific directory, use the du command. For example, to see the total size of /home/user directory:

du -sh /home/user

Here, -s summarizes the total size and -h shows it in a human-readable format.

3. Check Inode Usage

Inodes store metadata about files and directories. To view inode usage on your filesystems, use:

df -i

Summary

  • df -h: Displays disk usage in human-readable format.

  • du -sh /path: Shows total disk usage of a specific directory.

  • df -i: Lists inode usage for mounted filesystems.


Using these commands, you can quickly monitor disk space and inode status on your Linux system, helping you manage system resources efficiently.


#Linux #DiskUsage #InodeCount #SystemManagement #LinuxCommands #DiskSpace #Inodes #Terminal #ServerAdmin #PerformanceMonitoring

Did you find it useful?
(62 times viewed / 1 people found it helpful)