Linux 101 : Monitoring storage usage

To monitor the disk usage for our mounted filesystems, we could use the below command:

  • -h : outputs the results in human-readable format - gigabyte or megabyte -.
In an almost full system, we could determine which directories on a filesystem are using up a lot of disk space. 

To check the size of a directory in kilobytes, we use the following - for example for the "/usr" directory -:

Every file and directory in a Linux system uses one inode. When we have a system with a lot of files and directories, We might end up using up all the inode available on our system. 
When this happens, we get a error when trying to create a new file or directory.

To get information about inode - used, available, ... -, we use the below command:


Leave as a comment: