Linux常用命令學習

2021-09-01 12:02:39 字數 476 閱讀 2561

一、常用系統工作命令

6 ps命令:用於檢視程序狀態

格式為:ps

eg:# pidof sshd

9 kill命令:終止某個指定pid的服務程序

格式為:kill

二、系統狀態檢測命令

1 ifconfig命令:用於獲取網絡卡配置與網路狀態等資訊

2 uname命令:用於檢視系統核心與系統版本等資訊

格式為:uname

3 free 命令:顯示當前系統中的記憶體使用量資訊

格式為: free

4 who命令:用於顯示當前登入主機的使用者終端資訊

5 history命令:顯示歷史執行過的命令

歷史命令會儲存在家目錄的.bash_history檔案中,用cat檢視檔案內容

# cat ~ /.bash_history

清空歷史記錄

# history -c

Linux常用命令學習

文件目錄 一 常用linux操作 二 使用工具學習 1 正規表示式 2 find命令 3 sed 4 awk 三 shell學習 四 精通vim工具 五 精通emacs工具 六 開發工具 1 gcc學習 2 makefile學習 3 gbd學習 七 linux c語言程式設計 一 常用linux操作...

linux常用命令學習

tail tail n filename 看某檔案的後n行 tail f filename 監控某檔案的輸入 head head n filename 看某檔案的前n行 mkdir mkdir p a b c建立多級資料夾 rmrm r資料夾 刪除資料夾 whereis whereis 命令檢視命令...

linux 常用命令學習

cd 命令 cd root ducment 就是切換到 root ducment目錄下。代表使用者主目錄。cd ducment 切換到當前目錄下的dument.cd ducment 切換上層目錄下ducment.cd 切換到上層目錄。touch 命令 touch test.c 新建檔案cat命令 c...