Command for viewing the hard disk partition status in Linux
Hard DiskHard Disc Drive (HDD) is the main hard drive of a computer.Storage MediaIt consists of one or more aluminum or glass discs. These discs are covered with magnetic materials. The vast majority of hard disks are fixed and permanently sealed and fixed in the hard drive.
Enter the subject-- Computer users store, move, and delete various types of files on disks day after day. Of course, you will be concerned about disk space usage. In
LinuxYou only need to execute some simple commands to clear the usage of the disk space at any time and anywhere.
We try to inputDF
See what is displayed.
This shows the hard disk status on this computer.
We are executing a command to see what is going on again?
EnterDF-H
Is this display more intuitive and clear?
But what should I do if I want to know which file system is a separate partition?
EnterDF-T
Please note that it is in uppercase.T. InShellCommands are case sensitive.
Is it true?Partition typeNow
However, it uses such a long number to display the space capacity. Is there a simple way to display the disk capacity of the partition type?
Then we will-TAnd-HPut the parameters together!
In the last line,/Dev/sdb1Type:VfatI believe everyone is familiar with this format? This is
DoSThe partition format in the method is correct. It is the FAT32 hard disk format.
So I only want to view the FAT32 hard disk space and other hard disk conditions. How can I execute the command?
EnterDF-th-T vfat
Is the specified disk type displayed?
Will show for us,VfatIf the disk is not displayed, other disk conditions are displayed.
VfatWhat if the disk is displayed?
This is the end of all the details. I hope you will read this article.BlogAt the same time, you can try it on your own.
LinuxCheck your hard disk status in the system!