Whether you are checking available inodes (suing the df commands) or directories (du command) that you are using the most amount of space, do take a look at my blog How to check Disk Usage
du
Checking Disk Usage within the subfolders but avoid mount-point
If you need to check Usage, but you wish to avoid the mount-point, you can use the command
[root@hpc-hn /]# du -h -x -d 1
48M ./etc
552M ./root
11G ./var
1.1G ./tmp
11G ./usr
0 ./media
0 ./mnt
4.8G ./opt
0 ./srv
0 ./install
0 ./log
0 ./misc
0 ./net
0 ./server_priv
0 ./ProjectSpace
0 ./media1
0 ./media2
28G .
- -h refers to human-readable
- -d refers to depth level. By default, it is 0 which is the same as summarize
- -x skip directories on different file systems
Checking Disk Usage within the subfolders
I like this command which I often use to look into the dish usages at the sub folder level to check for large usages
% du -h -d 1
1.3M ./Espresso-BEEF
65M ./MATLAB
478M ./Abaqus
10G ./COMSOL
8.3M ./Gaussian2
316K ./scripts
4.9M ./NB07
647M ./pytorch-GAN
31M ./Gaussian
12G .
where
- -h refers to human-readable
- -d refers to depth level. By default, it is 0 which is the same as summarize