Linux operation command df

Home page of personal blog (click to view details)-- https://blog.51cto.com/11495268Linux Shell command directory overview (click for details)-- http...
5.1 display disk usage
5.2 inode mode
5.3 disk file system type

Home page of personal blog (click to view details)-- https://blog.51cto.com/11495268
Linux Shell command directory overview (click for details)-- https://blog.51cto.com/11495268/2338219

1, introduction

df command is short for disk free

2. Main functions

The function of df command in linux is to check the disk space occupation of the file system of the linux server; you can get the information about how much space the hard disk is occupied and how much space is left at present

3. Usage / command format df [options] file

4. Analysis of common parameters parameter describe -a List of all file systems -h Easy to read display -i Show inode information -T -T -T < file system type > Display only disk information for the selected file system -X < file system type > Do not display disk information for the selected file system

5, case

5.1 display disk usage

# df -h Filesystem Size Used Avail Use% Mounted on udev 468M 0 468M 0% /dev tmpfs 98M 7.1M 91M 8% /run /dev/sda3 47G 1.5G 43G 4% / tmpfs 488M 0 488M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 488M 0 488M 0% /sys/fs/cgroup /dev/sda1 922M 56M 803M 7% /boot /dev/sdb 20G 53M 19G 1% /mnt/wl_learn_linux tmpfs 98M 0 98M 0% /run/user/1000

5.2 inode mode

# df -i Filesystem Inodes IUsed IFree IUse% Mounted on udev 119779 506 119273 1% /dev tmpfs 124788 685 124103 1% /run /dev/sda3 3096576 66585 3029991 3% / tmpfs 124788 1 124787 1% /dev/shm tmpfs 124788 3 124785 1% /run/lock tmpfs 124788 16 124772 1% /sys/fs/cgroup /dev/sda1 61056 302 60754 1% /boot /dev/sdb 1310720 49 1310671 1% /mnt/wl_learn_linux tmpfs 124788 4 124784 1% /run/user/1000

5.3 disk file system type

# df -T Filesystem Type 1K-blocks Used Available Use% Mounted on udev devtmpfs 479116 0 479116 0% /dev tmpfs tmpfs 99832 7220 92612 8% /run /dev/sda3 ext4 48589664 1499896 44598480 4% / tmpfs tmpfs 499152 0 499152 0% /dev/shm tmpfs tmpfs 5120 0 5120 0% /run/lock tmpfs tmpfs 499152 0 499152 0% /sys/fs/cgroup /dev/sda1 ext4 944120 57304 821640 7% /boot /dev/sdb ext4 20511356 53400 19392996 1% /mnt/wl_learn_linux tmpfs tmpfs 99832 0 99832 0% /run/user/1000

6 November 2019, 14:06 | Views: 2720

Add new comment

For adding a comment, please log in
or create account

0 comments