1. 程式人生 > >linux查看磁盤分區

linux查看磁盤分區

ble abi lis mit inf linu 磁盤分區 nbsp define

df 查看磁盤分區使用狀況

用法:df [選項]... [文件]...

Show information about the file system on which each FILE resides,

or all file systems by default.

必選參數對長短選項同時適用。

-a, --all include pseudo, duplicate, inaccessible file systems

-B, --block-size=SIZE scale sizes by SIZE before printing them; e.g.,

‘-BM‘ prints sizes in units of 1,048,576 bytes;

see SIZE format below

-h, --human-readable print sizes in powers of 1024 (e.g., 1023M)

-H, --si print sizes in powers of 1000 (e.g., 1.1G)

-i, --inodes 顯示inode 信息而非塊使用量

-k 即--block-size=1K

-l, --local 只顯示本機的文件系統

--no-sync 取得使用量數據前不進行同步動作(默認)

--output[=FIELD_LIST] use the output format defined by FIELD_LIST,

or print all fields if FIELD_LIST is omitted.

-P, --portability use the POSIX output format

--sync invoke sync before getting usage info

--total elide all entries insignificant to available space,

and produce a grand total

-t, --type=TYPE limit listing to file systems of type TYPE 顯示指定類型文件系統的磁盤分區

-T, --print-type print file system type 顯示文件類型

-x, --exclude-type=TYPE limit listing to file systems not of type TYPE 顯示指定類型文件系統的磁盤分區

-v (ignored)

--help 顯示此幫助信息並退出

--version 顯示版本信息並退出

也可以組合使用如下:

df -lhT

df -lhT -t ext4

df -lhT -x ext4

linux查看磁盤分區