linux命令備忘
一些工作中用到的linux命令:
檢視cpu資訊
/proc/cpuinfo 檔案中記錄了cpu的個數、型號等,還包括core數
top、ps命令檢視cpu、記憶體等的使用情況
檢視硬碟資訊
fdisk -l 列出所有硬碟資訊
mount 列出裝載的裝置,包括u盤,nfs等
df 檢視各個分割槽的使用情況
檢視記憶體資訊
ll -h /proc/kcore
[oracle@orarac1 ~]$ ll -h /proc/kcore
-r-------- 1 root root 8.8G Mar 19 17:01 /proc/kcore
用free -m檢視的結果:
# free -m
total used free shared buffers cached
Mem: 504 471 32 0 19 269
-/+ buffers/cache: 183 321
Swap: 996 0 996
free -s5 每5秒重新整理一下資訊
有個問題是
一臺4g記憶體的機器
[root@localhost proc]# ll -h /proc/kcore
-r-------- 1 root root 4.0K Mar 19 16:56 /proc/kcore
另外一臺8g記憶體
[oracle@orarac1 ~]$ ll -h /proc/kcore
-r-------- 1 root root 8.8G Mar 19 17:01 /proc/kcore
這個怎麼解釋?計量單位不同?
檢視cpu資訊
/proc/cpuinfo 檔案中記錄了cpu的個數、型號等,還包括core數
top、ps命令檢視cpu、記憶體等的使用情況
檢視硬碟資訊
fdisk -l 列出所有硬碟資訊
mount 列出裝載的裝置,包括u盤,nfs等
df 檢視各個分割槽的使用情況
檢視記憶體資訊
ll -h /proc/kcore
[oracle@orarac1 ~]$ ll -h /proc/kcore
-r-------- 1 root root 8.8G Mar 19 17:01 /proc/kcore
用free -m檢視的結果:
# free -m
total used free shared buffers cached
Mem: 504 471 32 0 19 269
-/+ buffers/cache: 183 321
Swap: 996 0 996
free -s5 每5秒重新整理一下資訊
有個問題是
一臺4g記憶體的機器
[root@localhost proc]# ll -h /proc/kcore
-r-------- 1 root root 4.0K Mar 19 16:56 /proc/kcore
另外一臺8g記憶體
[oracle@orarac1 ~]$ ll -h /proc/kcore
-r-------- 1 root root 8.8G Mar 19 17:01 /proc/kcore
這個怎麼解釋?計量單位不同?
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/32939/viewspace-573185/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux基本命令備忘Linux
- linux 常用命令備忘Linux
- [大圖] Linux 命令黑白備忘錄Linux
- rman命令備忘錄
- GNU/Linux 常用命令與工具備忘Linux
- Git 常用命令備忘Git
- Git常用命令備忘Git
- linux 備忘記錄Linux
- Docker 常用命令備忘錄Docker
- Oracle DataGuard 常用命令備忘Oracle
- vi常用命令備忘錄
- Linux dmidecode備忘LinuxIDE
- linux常用易忘命令收集Linux
- Ubuntu操作命令備忘錄(不定時更新)Ubuntu
- 【linux備忘錄】linux新增使用者Linux
- linux基礎知識整理(備忘)Linux
- 「備忘錄」60+Git常用命令列Git命令列
- Cheat—— 給Linux初學者和管理員一個終極命令列"備忘單"Linux命令列
- 『學了就忘』Linux基礎命令 — 18、Linux命令的基本格式Linux
- RunLoop備忘OOP
- Vuepress 備忘Vue
- MySQL備忘MySql
- JS備忘JS
- SQL備忘SQL
- 備忘錄
- 開發者必備Linux命令Linux
- iOS設計模式之四:備忘錄模式和命令模式iOS設計模式
- HTTPS備忘HTTP
- 備忘錄模式模式
- Git使用備忘Git
- iOS備忘錄iOS
- JUnit備忘錄
- CSS備忘錄CSS
- Oracle job備忘Oracle
- VITUALBOX備忘
- ApplicationDomain 備忘APPAI
- jsfl 備忘JS
- tmux使用備忘UX