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信息
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有