ubuntu命令行
文件操作
- pwd
- cd
- cp
- rm
- echo
- ls
- touch
- mkdir
- nano
查看文件
搜索
权限
系统状态
- df
- du
- top
- free
- ps
- kill
- pkill
文件安装管理
- apt install
- apt update
- apt remove
- apt purge
- apt automove
- apt show
- apt list – installed
- apt grade
- apt full-grade
- apt clean
文件解压
zip文件
tar文件
.tar.gz/.tgz文件
.tar.bz2文件
.tar.xz文件
.gz文件
网络
- ping
- curl
- ss
- ip
- wegt
- traceroute
- resolvectl
服务管理
- systemctl
- status
- start
- stop
- restart
- reload
- enable
- disable
- is-enabled
- is-active
- –failed
- list–units –type=service
- list–units –type=service –start=running
- journalctl
其它
- history
- clear == Ctrl + L
- which
- whereis