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.