Breaking News
Loading...
Friday, August 9, 2013

Check Hard Disk Size and Hard Disk Usage on CentOS 6.4

9:06 AM

In this post, i will share the simple command to check the Hard Disk size and usage on CentOS 6.4. This command is a basic command for linux operating system.
To view and list of the usage of each partition in the server :
1. Check Hard Disk Size
[root@vps10634 ~]# df -h
df command will displays the total, used, and available free space on all currently mounted filesystems.
To list the size of a specific directory, run the following command :
2. Check Hard Disk Usage 
[root@vps10634 ~]# du -sh /root
du command reports disk usage. It will shows the disk space used by the files and directories in a directory. The -h option makes the output easier to read by user.

0 comments:

Post a Comment

 
Toggle Footer