Linux system view a few hard drives

Source: Internet
Author: User
Tags disk usage

use the DF command to view。

DF is from the Coreutils software package, the system is installed, it comes with, we can use this command to see the disk usage and the location of the file system is mounted;

Example:
[Email protected] ~]# df-l
File system capacity has been used with available% mount points
/dev/sda3 4956316 3565088 1135396 76%/
Tmpfs 241320 241308 1%/DEV/SHM
/dev/sda6 4806904 2523708 2039012 56%/media/disk
/DEV/SDA1 4956284 3529796 1170656 76%/media/_
/dev/sda5 4845056 2581484 2019388 57%/media/disk-1
Description: The partition format of the Linux system uses theformat of xyzN ,XY represents the hard disk type, such as the above results, SD indicates a SCSI hard disk,Z represents the hard drive serial number, the first hard disk is a, the second hard disk is B, so to query the Linux system has a few hard disks, just pay attention to this.n represents the partition code。

Obviously, the Linux system in the example has only one hard drive.

Linux system view a few hard drives

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.