2019-8-15linux經常使用命令整理linux
cd # 切換目錄 pwd # 查看當前目錄 ls -l # 查看指定目錄文件,可寫爲ll touch <file> # 建立文件 mkdir <dir> # 建立文件夾 rm -rf # 強制刪除且無提示 cp # 複製、備份 cp <old_file> <new_file> cat -n # 查看文件 n->顯示行號 tac # 反向查看文件 awk whereis # 查找二進制文件、源碼文件、幫助文件 find locate wget # tar ps -aux # 查詢進程 kill # 殺掉進程 kill -s 9 xxxx top # 查看服務器組員使用 free # 查看服務器內存使用 netstat -lntup # 查看端口狀況 l->listen,n->num,t->tcp,u->udp,p->process nohup # 後臺運行,結尾處加註& man