How to view disk space hard disk applications in linux, diskspace

Source: Internet
Author: User

How to view disk space hard disk applications in linux, diskspace

The df command is used. df is the abbreviation of disk filesystem.


Many useful tags can be added later.


Df-h is displayed in a format suitable for human reading, that is, the unit of capacity is GB (giga bytes) and MB.

Df-a prints the most comprehensive information.


The above two is the most commonly used, if you want to know other usage, you can view http://www.tecmint.com/how-to-check-disk-space-in-linux/

Or directly use df -- help to get help information.




How to view unallocated disk space in linux

Simon @ T60 :~ $ Df-lh
Filesystem Size Used Avail Use % Mounted on
/Dev/sda1 71G 4.5G 63G 7%/
Udev 997 M 4.0 K 997 M 1%/dev
Tmpfs 403 M 856 K 402 M 1%/run
None 5.0 M 0 5.0 M 0%/run/lock
None 1007 M 628 K 1006 M 1%/run/shm

How to enable the mobile hard drive in linux?

This question involves a lot of background knowledge. I just want to explain how to use it.
Mkdir/mnt/usb
Mount-t vfat/dev/sda1/mnt/usb
The first line of the above command creates a usb directory under the/mnt directory
The second command mounts the first primary partition of the mobile hard disk to the/mnt/usb directory.
Parameter description:
-T vfat: The file system used by the mobile hard disk. In one case, fat32 and ntfs are available for mobile hard disks only on windows, which correspond to vfat and ntfs respectively.
/Dev/sda1 indicates the first primary partition of the mobile hard disk. If the hard disk of the original host is a serial hard disk, It is sdb. Change it on your own.
Linux does not recognize hard disks like windows. In linux, there are no drive letters C and D. There are only primary partitions and logical partitions. There are four primary partitions. logical partitions start from 5, the D disk on windows corresponds to 5, and so on.

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.