Disk Manage..

Linux Overviews about Disk size and File system

How to check Disk size and file system in Centos.

Linux fdisk -l  

shows disk size along with disk partitioning information

fdisk -l

Linux Stat Command

Linux stat 

displays the size and other stats of a file/directory or a filesystem.

[root@volbackup ~]# stat /etc


ls -al 

ls -al – lists the entire contents, along with their size, of a particular directory


Linux df command

The df command stands for “disk-free,” and shows available and used disk space on the Linux system.

df -h shows disk space in human-readable format.

df -a shows the file system’s complete disk usage even if the Available field is 0


Linux du command

du shows the disk usage of files, folders, etc. in the default kilobyte size

du -h shows disk usage in human-readable format for all directories and subdirectories

du -a shows disk usage for all files

du -s provides total disk space used by a particular file or directory