DF
df – report file system disk space usage 查看文件系统的使用清空
用法
df [-hi] [path]选项-h human readable ,以人类易读的方式显示size
-i inode 显示inode,不显示硬盘容量
选项
注意
DU
du – show file space usage ,输出文件的大小
默认情况下,输出当前目录和所有子目录的大小
选项
-s display only a total for each argument,仅显示当前目录的总大小
-S exclude size of subdirectories ,排除子目录的大小
-h human readable
LN
ln – make links between files ,创建文件之间的连接
默认是硬连接
用法
ln [-sf] source destination
选项
STAT
stat – display file or file system status,显示文件或文件系统的状态
可以用这个指令看inode信息
默认情况是显示出文件的inode信息
用法
stat [-f] file
选项
-f file system,显示该file所在的文件系统super inode信息
不加选项,显示文件的inode
加了选项,显示文件所在磁盘的inode信息