14,957
edits
| Line 281: | Line 281: | ||
hard disk usage | hard disk usage | ||
* [http://linux.about.com/od/commands/l/blcmdl1_df.htm df command] "disk space usage" for {{Linux}} {{kbd | key = <nowiki>df -h</nowiki>}} | * [http://linux.about.com/od/commands/l/blcmdl1_df.htm df command] "disk space usage" for {{Linux}} {{kbd | key = <nowiki>df -h</nowiki>}} | ||
* [http://linux.about.com/library/cmd/blcmdl1_du.htm du command] "estimate file space usage" of specific folder for {{Linux}} {{kbd | key = <nowiki>du --max-depth=1 -B M /path/to/folder/ | sort -g</nowiki>}}<ref>[http://blog.xuite.net/chingwei/blog/32566618-%E3%80%90%E7%B3%BB%E7%B5%B1%E3%80%91%E4%BD%BF%E7%94%A8+du+%E4%BE%86%E7%9C%8B%E7%A3%81%E7%A2%9F%E7%9A%84%E4%BD%BF%E7%94%A8%E7%A9%BA%E9%96%93 【系統】使用 du 來看磁碟的使用空間 @ My Life :: 隨意窩 Xuite日誌]</ref> | * [http://linux.about.com/library/cmd/blcmdl1_du.htm du command] "estimate file space usage" of specific folder for {{Linux}} {{kbd | key = <nowiki>du --max-depth=1 -B M /path/to/folder/ | sort -g</nowiki>}}<ref>[http://blog.xuite.net/chingwei/blog/32566618-%E3%80%90%E7%B3%BB%E7%B5%B1%E3%80%91%E4%BD%BF%E7%94%A8+du+%E4%BE%86%E7%9C%8B%E7%A3%81%E7%A2%9F%E7%9A%84%E4%BD%BF%E7%94%A8%E7%A9%BA%E9%96%93 【系統】使用 du 來看磁碟的使用空間 @ My Life :: 隨意窩 Xuite日誌]</ref>Output example: | ||
<pre> | |||
0M /sys | |||
1M /tmp | |||
9M /run | |||
27M /etc | |||
36M /root | |||
165M /boot | |||
1647M /usr | |||
49287M /var | |||
51379M /home | |||
102547M / | |||
</pre> | |||
=== Scan the disk === | === Scan the disk === | ||