df
df - report file system disk space usage 查看文件系統的使用清空
用法
df [-hi] [path]
選項
- -h human readable ,以人類易讀的方式顯示size
- -i inode 顯示inode,不顯示硬盤容量
demo
注意
- df後面接path的話,會輸出這個path所在的文件系統的信息
du
du - show file space usage ,輸出文件的大小
默認情況下,輸出當前目錄和所有子目錄的大小
選項
-s display only a total for each argument,僅顯示當前目錄的總大小
-S exclude size of subdirectories ,排除子目錄的大小
-h human readable
demo
ln
ln - make links between files ,創建文件之間的連接
默認是硬連接
用法
ln [-sf] source destination
選項
- -s symbolic links ,軟連接
- -f force,暴力,不管destination有沒有存在,直接複製
stat
stat - display file or file system status,顯示文件或文件系統的狀態
可以用這個指令看inode信息
默認情況是顯示出文件的inode信息
用法
stat [-f] file
選項
-f file system,顯示該file所在的文件系統super inode信息
demo
不加選項,顯示文件的inode
加了選項,顯示文件所在磁盤的inode信息
查看原文:http://139.129.55.235/2016/06/03/linux%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4%e4%b9%8b%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f/