One Linux command per day: DF

Source: Internet
Author: User
Tags disk usage

1. Introduction to Commands

DF Disk free Displays information about the file system in which each file resides, by default displaying all file systems.

2. Usage
[ options ] [ file ]...
3. Option 4, Example 1: Show disk usage
DF Filesystem     1K-blocks     Used Available use% mountedon/dev/sda3       9668477216938944  74827812  %/tmpfs            1961140           1961060   1%/dev/shm/dev/sda1         194241    93321     90680  Wuyi%/boot
Example 2: Display disk usage in a humane way
DF -hfilesystem      Size  used Availuse% mountedon/dev/sda3        93G   17G   72G  %/           tmpfs1. 9G   80K  1. 9G   1/dev/ shm/dev/sda1       190M   92M   89M  wuyi/boot
Example 3: The-h parameter is the same on the-H root, but the capacity is converted by 1000 instead of 1024 when the radical is applied
DF -hfilesystem      Size  used Availuse% mountedon/dev/sda3       100G   18G   77G  /tmpfs           2. 1G   82k  2. 1G   1/ dev/shm/dev/sda1       199M   96M   93M  wuyi/boot
Example 4:-k display of disk usage in units
DF -kfilesystem     1K-blocks     used Available use% mounted on/dev/sda3        9668477216938944  74827812  %/tmpfs            1961140           1961060   1/dev/shm/dev/sda1          194241    93321     90680  %/boot
Example 5: Display disk usage in Inode mode
DF -i Filesystem      inodes  iused   IFree iuse% mountedon/dev/sda3       61521921655305986662    3%/tmpfs           490285      5  490280    1%/dev/shm/dev/sda1        51200     wuyi   51149    1%/boot
Model 6:-L displays local partition disk space usage, filtered NSF drive Results
[Email protected] ~]$DF-hDF: '/run/user/1002/Gvfs ': Permission deniedfilesystem Size used Avail use%mounted on/DEV/MD126P3 919G 61G 858G7% /Devtmpfs3.8G0  3.8G0% /Devtmpfs3.8G2.0G1.9G the%/dev/Shmtmpfs3.8G 89M3.7G3% /Runtmpfs3.8G0  3.8G0%/sys/fs/Cgroup/DEV/MD126P1 493M 123M 371M -% /Boot100.17.82.13:/backup/test 81T 32T 49T +% /Rman_remote_backup[[email protected]~]$DF-LHDF: '/run/user/1002/Gvfs ': Permission deniedfilesystem Size used Avail use%mounted on/DEV/MD126P3 919G 61G 858G7% /Devtmpfs3.8G0  3.8G0% /Devtmpfs3.8G2.0G1.9G the%/dev/Shmtmpfs3.8G 89M3.7G3% /Runtmpfs3.8G0  3.8G0%/sys/fs/Cgroup/DEV/MD126P1 493M 123M 371M -% /Boot[[email protected]~]$
Example 7: Displaying information about the file system where a file resides
DF -h/etc/Filesystem      Size  used Availuse% mountedon/dev/sda3        93G   17G   72G  %/

One Linux command per day: DF

Related Article

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.