Linux fdisk under Disk View command sharing is simple

Source: Internet
Author: User
Tags disk usage

A FDISK command

FDISK is a disk partitioning command that uses detailed commands to view related documents

Use the command fdisk-l to view the current disk's partition status,

Fdisk-l
[[email protected] ~]# fdisk -ldisk /dev/sda: 21.5 gb, 21474836480  bytes255 heads, 63 sectors/track, 2610 cylindersunits = cylinders  of 16065 * 512 = 8225280 bytesSector size  (logical/physical):  512 bytes / 512 bytesI/O size  (Minimum/optimal): 512 bytes  / 512 bytesdisk identifier: 0x00050ad5   device boot       Start         End       Blocks   Id  System/dev/sda1   *            1          26       204800   83  linuxpartition 1 does not  end on cylinder boundary./dev/sda2               26         287     2098176    82  linux swap / solarispartition 2 does not end on  cylinder boundary./dev/sda3              287        2611    18667520    83  linux

Two DF command

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:

Df-h
[Email protected] ~]# df-hfilesystem Size used Avail use% mounted On/dev/sda3 18G 1.5G 16G 9%/TMPFS 497M 0 497M 0%/dev/shm/dev/sda1 190M 27M 153M 15%/boot

We can see the capacity of the disk, used, usable, percentage used, and the mount point of the disk partition

For other parameters refer to man DF also can be viewed.


This article is from the "I am a Little bird" blog, please make sure to keep this source http://liyanchao.blog.51cto.com/9954601/1659901

Linux fdisk under Disk View command sharing is simple

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.