歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> Linux常用的150個命令總結分類

Linux常用的150個命令總結分類

日期:2017/3/3 10:58:31   编辑:Linux技術

●目錄操作命令(6 個)ls tree pwd mkdir rmdir cd●文件操作命令(7 個)

touch cp mv rm ln find rename●文件查看及處理命令(21 個)

cat more less head tac head tail cut pastesort uniq wc iconv dos2unix file diff tree chattr

lsattr rev vimdiff●文件打包壓縮命令(3 個)

gzip tar unzip●信息顯示命令(12 個)

uname hostname dmesg uptime file stat du df top free w date●搜索文件命令(4 個)

find which whereis locate●用戶管理命令(10 個)

useradd userdel passwd chage usermod id su sudo visudogroupadd

●基本網絡操作命令(10 個)telnet ssh scp wget ping route ifconfig ifup ifdown netstat

●深入網絡操作命令(6 個)route mail mutt nslookup dig wget

●有關磁盤空間的命令(6 個)mount umount df du fsck dd

●關機和查看系統信息的命令(7 個)shutdown reboot ps top kill date

●安裝和登錄命令(3 個)shutdown halt reboot

●系統管理相關命令(9 個)top free vmstat mpstat iostat sar kill chkconfig last

●系統安全相關命令(13 個)passwd su sudo umask chgrp chmod chown chattr lsattr ps

whoami●查看系統用戶登陸信息命令(6 個)

w who users last lastlog fingers●查看硬件相關命令(6 個)

ethtool mii-tool dmidecode dmesg lspci●其它(14 個)

chkconfig echo yum watch alias unalias date clear history eject time nohup nc xargs●監視物理組件的高級 Linux 命令

內存:top free vmstat mpstat iostat sarCPU:top vmstat mpstat iostat sar

I/O:vmstat mpstat iostat sar進程:ipcs ipcrm

負載:uptime●關機/重啟/注銷命令

關機:shutdown -h now ――>立刻關機(生產常用)

shhutdown -h +1 ――>1 分鐘以後關機init 0

halt ――>立即停止系統,需要人工關閉電源halt -p

poweroff ――>立即停止系統,並且關閉電源重啟:

reboot(生產常用)shutdown -r now(生產常用)

shhutdown -r +1 ――>1 分鐘以後重起init 6

注銷logout

exit(生產常用)ctl+d ――>快捷鍵(生產常用)

●進程管理:(16 個)bg:後台運行 fg:掛起程序 jobs:顯示後台程序

kill,killall,pkill:殺掉進程crontab:設置定時 ps:查看進程 pstree:顯示進程狀態樹

top:顯示進程 nice:改變優先權 nohup:用戶退出系統之後繼續工作pgrep:查找匹配條件的進程 strace:跟蹤一個進程的系統調用

ltrace:跟蹤進程調用庫函數的情 vmstat:報告虛擬內存統計信息●危險的系統命令:

mv rm dd fdisk parted●linux 四劍客(4 個)

grep egrep sed awk

Copyright © Linux教程網 All Rights Reserved