340K Subscribers . 625K Views
Welcome to the video - "How to use df Commands to Check Disk Space in Centos Linux"
The df command is used in Linux to display the amount of disk space used and available on mounted file systems. Here's how to use the df command in CentOS Linux:
Open a terminal window or log in to the server using SSH.
Type the following command to display the disk usage for all mounted file systems:
df -h
This will display the disk space usage in human-readable format, including the total size of the file system, the amount of space used, the amount of space available, and the percentage of space used.
The -h option is used to display the sizes in a human-readable format (e.g. 1K, 1M, 1G).
If you want to display the disk usage for a specific file system, you can specify the file system name as an argument to the df command. For example:
df -h /dev/sda1
This will display the disk space usage for the /dev/sda1 file system.
You can also use the --total option to display the total disk space usage for all file systems:
df -h --total
This will display the total disk space usage at the end of the output.
That's it! You have successfully used the df command to check the disk space usage on your CentOS Linux system.
Please Subscribe and click the notification bell so you never miss a video
Thank You For Watching
#LinuxTipsandTricks2020 #LinuxServer #LinuxTeachingHouse