兩邊的前次修訂版前次修改
下次修改 | 前次修改
|
freebsd [2011/06/11 11:40] – jal | freebsd [2017/05/20 16:42] (目前版本) – jal |
---|
- 查看硬碟<code cmd>diskinfo -vt /dev/ad0</code> | - 查看硬碟<code cmd>diskinfo -vt /dev/ad0</code> |
- 硬碟大小<code cmd>df -h</code> | - 硬碟大小<code cmd>df -h</code> |
- 硬體使用情況<code cmd>dmesg | grep "sector" | awk '{print $1,$2}'</code> | - 硬體使用情況<code cmd>cat /var/run/dmesg.boot | grep "sector" | awk '{print $1,$2}'</code> |
- 伺服器廠牌<code cmd>dmesg | grep "ACPI APIC"</code> | - 伺服器廠牌<code cmd>cat /var/run/dmesg.boot | grep "ACPI APIC"</code> |
- 詳細版本資訊<code cmd>uname -a</code> | - 詳細版本資訊<code cmd>uname -a</code> |
- 快速 merge 檔案<code cmd>sdiff -o JAL -a -s -w 180 JAL.old GENERIC</code> | - 快速 merge 檔案<code cmd>sdiff -o JAL -a -s -w 180 JAL.old GENERIC</code> |
| - 查看可使用之高解析度模式(請先修改 kernel 或是動態載入)<code cmd>vidcontrol -i mode</code> |
| - 刪除大量檔案<code cmd>find . -maxdepth 1 -name '*' -type f | tail -r | xargs -P 5 -n 5 rm -rf</code> |
| - 快速設定大量使用者 quota<code cmd>zfs userspace zroot/home/users | awk '{print "zfs set userquota@" $3 "=1G zroot/home/users"}'</code> |
===== 討厭的程式 ===== | ===== 討厭的程式 ===== |
就代表這些是有問題的程式紀錄 | 就代表這些是有問題的程式紀錄 |