View partition status in Linux

Source: Internet
Author: User

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.
Vfat
What 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.
Linux
Check your hard disk status in the system!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.