目錄
檔案操作
文字處理
系統監測
網路監測
管道和重定向
ls
列出檔案屬性(綠色是可執行檔案,藍色是目錄)du:disk usage
檢視當前目錄的檔案、子目錄的大小finddu -h -max-depth=1 * 檢視當前目錄下所有檔案大小
按檔案屬性查詢檔案chmod:change mode cat grep
在指定檔案、路徑下的檔案中查詢符合pattern的串並列印awk
awk 以記錄、字段作為處理單位,將每行記錄按分隔符分成字段進行處理tail:檢視檔案尾部內容
tail 檔名 預設顯示最後10行wc:word count,統計檔案行數、字元數、位元組數、字數
free:總共、已用、共享記憶體
df:顯示磁碟ps: process status程序快照top
查詢計算機記憶體、cpu使用情況,實時顯示程序資訊,類似任務管理器lsof: list openfiles kill ipcs:檢視程序間通訊的情況 netstat:network status
ip、tcp、udp等網路協議的統計資料
linux下三種輸入輸出裝置:管道| : 將前乙個命令輸出當作後乙個命令的輸入
重定向 : 修改輸入輸出裝置
linux 命令筆記
檢視當前程序開啟的程序數 lsof n p process id wc l 檢視當前程序的限制 cat proc process id limitslimit soft limit hard limit unitsmax cpu time unlimited unlimited msmax file...
linux 命令筆記
命令改變群組chgrp chgrp 群組名稱 檔案或目錄 改變擁有者chown chown r 賬號名稱 檔案或目錄 chown r 賬號名稱 群組名稱 檔案或目錄 將檔案複製給其他人 cp 檔案 目的檔案 數字型別改變檔案的許可權 chomd r xyz 檔案或目錄 顯示當前目錄 pwd 建立目錄...
Linux 命令筆記
一 防火牆 1 檢視防火牆狀態 systemctl status firewalld.service 2 啟動防火牆 systemctl start firewalld.service 3 關閉防火牆 systemctl stop firewalld.service 4 新增要開放到埠到防火牆配置中...