Linux命令概况

1.硬件资源 10

 CPU  lscpu
 显卡  lspci | grep -i VGA
 内存 free
 硬盘 lsblk mount umount du  df
 网络 ping ifconfig  netstat traceroute host
 内核 uname  lsmod

2.用户和文件系统 30

 su  sudo  id  groups  useradd
 w  who whoami  last passwd  
 echo cat  less head tail 
 ls cd pwd  mkdir rmdir
 cp mv chmod touch ln
 tar zip  wget scp history 

3.路径和变量 10

 export  source  exec  fork bash
 $PATH  ../  ./  ~/  printenv

4.进程和服务 10

 ps pstree top kill jobs fg
 at crontab systemctl journalctl

5.编译和安装 5

 configure  make install 
 yum/apt  rpm/deb	  

6.搜索和帮助 10

 find which locate whereis  type 
 file grep
 man info  --help

7.符号和变量 5

 通配符 *
 管道符 |
 $普通用户     # root 权限
 .bashrc

8.其他

 wc  clear alias 
 vim 三种命令模式
 lshw lsscsi lspci lsof lsattr  
find ./ -maxdepth 1 -type d -name "TEST*"  | xargs -i zip -vr {}.zip {}
find ./ -maxdepth 1 -type d -name "*.jpeg" | xargs -i rename -v 's/.jpeg/.jpg/' {}
find ./ -maxdepth 1 -type d -name "TEST*"  | xargs -i rm -v {}.zip
 <()
   sort   <(find ./ -maxdepth 1 -type f -name "tt*.zip" |cut -d . -f1-2  )    <( find ./ -maxdepth 1 -type d -name "tt*"  )  |uniq -d   | xargs -i rm -v {}.zip
原文地址:https://www.cnblogs.com/ytwang/p/15160933.html