Home > Article > Operation and Maintenance > How to check linux hard disk
How to check the Linux hard drive?
Use linux commands to check the status of the hard disk:
For example, click on the terminal here and enter the command: [lsblk]
Then press Enter to see the partition status of the hard disk, as shown below.
#To roughly check the hard disk capacity, enter: [df] and press Enter to see it.
To view it in GB mode, enter the command: [df -h], then you can see it.
If you want to view all hard disk file systems, enter: [df -a], then all file system conditions will be listed.
Recommended Linux video tutorial, learning address: https://www.php.cn/course/list/33.html
The above is the detailed content of How to check linux hard disk. For more information, please follow other related articles on the PHP Chinese website!