How Linux views the file system (disk usage)

Source: Internet
Author: User
Tags disk usage

To view disk space remaining: df-th

Usage:df [Options] ... [File] ...

Displays the information for each < file > file system that is located, by default showing all file systems.

The parameters that must be used for the long option are also required when using the short option.

  • -a,–all includes a file system of size 0 blocks
  • -b,–block-size= size block to specify < size > bytes
  • -h,–human-readable file system size in an easy-to-understand format (e.g. 1K 234M 2G)
  • -h,–si is similar to-H but takes 1000 of the time instead of 1024
  • -i,–inodes display Inode information rather than block usage
  • -K is –block-size=1k
  • -l,–local only show the native file system
  • –no-sync No sync action (default) before getting usage data
  • -p,–portability using the POSIX output format
  • –sync sync action before getting usage data
  • The-t,–type= type only prints the file system information for the specified < type >
  • -t,–print-type Print File system type
  • -x,–exclude-type= type only prints file system information that is not a specified < type >
  • -V (this option is not processed)

[[email protected] ~]# df-th file system    type      capacity  used with  available percent mount point/dev/sda1     ext4     25G   10G   14G  43%/tmpfs        tmpfs    504M     0  504M   0%/dev/shm/dev/sda2     ext4     14G  164M   13G   2%/Home

How Linux views the file system (disk usage)

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.