本文最后更新于:2022年9月5日 晚上
Linux
系统和Windows
系统下的常用shell
命令汇总
Linux
Linux 通用
1.文件类
1 2 3 4 5 6 7 8 9 10 11 12 13
| ls cp mv pwd whoami mkdir [dir] rm [-rf] [file|dir] cat/tail/more/less [file] touch [file] cd ~/-/[dir] find [file] grep [str] > / >> [result.txt]
|
2.包管理
1 2
| sudo apt install [pkg_name] yum install [pkg_name]
|
3.系统类
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| su su -u root -p sudo [command] echo [content] ps df du cal man [command] which [command] alias [command] unalias [name] reboot history shutdown ctrl + l mount/umount [device] [dir] [command] | grep [kw]
|
Ubuntu
1 2 3
| apt list apt edit-sources apt [command]
|
MacOS
1 2 3
| open [file] say [str] say -f demo.txt -o [file]
|
Windows
1.文件类
1 2 3
| ren *.jpg *.png ren *.* *.png cd -d [dist]
|
1
| dir [path] > [dist]\dir.txt
|
2.网络类
1 2 3
| ipconfig -all ipconfig /flushdns ping [ip]
|
3.通用类