"Linux" DF command to view disk capacity.

Source: Internet
Author: User

Oracle Library failed because the disk is full, log the instructions to view disk capacity

1. Command format:

DF [Options] [file]

-A All File system list

-h easy to read mode display

-H equals "-H", but the formula, 1k=1000, rather than 1k=1024

-I display inode information

-K block is 1024 bytes

-L show local file system only

-M block is 1048576 bytes

--no-sync Ignore sync command

-P output format POSIX

--sync perform the sync command before obtaining the disk information

-T File system type

Format: DF-HL

The display format is:

File system capacity has been used with available% mount points

[[email protected]opt]# DF
Filesystem 1k-blocks used Available use% mounted on
/dev/sda3 416502068 103330280 313171788 25%/
Devtmpfs 1899236 0 1899236 0%/dev
Tmpfs 1907804 0 1907804 0%/dev/shm
Tmpfs 1907804 9056 1898748 1%/run
Tmpfs 1907804 0 1907804 0%/sys/fs/cgroup
/DEV/SDA1 51175000 51164908 10092 100%/Home
TMPFS 381564 8 381556 1%/RUN/USER/42
Tmpfs 381564 0 381564 0%/run/user/1001
Tmpfs 381564 0 381564 0%/run/user/0
[[email protected]opt]# DF-HL
Filesystem Size used Avail use% mounted on
/dev/sda3 398G 99G 299G 25%/
Devtmpfs 1.9G 0 1.9G 0%/dev
Tmpfs 1.9G 0 1.9G 0%/dev/shm
Tmpfs 1.9G 8.9M 1.9G 1%/run
Tmpfs 1.9G 0 1.9G 0%/sys/fs/cgroup
/dev/sda1 49G 49G 9.9M 100% /Home
Tmpfs 373M 8.0K 373M 1%/run/user/42
Tmpfs 373M 0 373M 0%/run/user/1001
Tmpfs 373M 0 373M 0%/run/user/0 [[email protected]~]# df/opt
Filesystem 1k-blocks used Available use% mounted on
/dev/sda3 416502068 11169824 405332244 3%/

Df-h viewing the partition size for each root path

[[email protected]~]# df-h
Filesystem Size used Avail use% mounted on
/dev/sda3 398G 99G 299G 25%/
Devtmpfs 1.9G 0 1.9G 0%/dev
Tmpfs 1.9G 0 1.9G 0%/dev/shm
Tmpfs 1.9G 8.9M 1.9G 1%/run
Tmpfs 1.9G 0 1.9G 0%/sys/fs/cgroup
/DEV/SDA1 49G 49G 9.9M 100%/Home
Tmpfs 373M 8.0K 373M 1%/run/user/42
Tmpfs 373M 0 373M 0%/run/user/1001
Tmpfs 373M 0 373M 0%/run/user/0

"Linux" DF command to view disk capacity.

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.