服务器命令
查看负载情况
htop【highlight top】动态查看服务器负载情况
查看 ip
curl ifconfig.me查看公网 iphostname -I查看内网 ip
网络 :
netstat- -t:显示 TCP 连接
- -u:显示 UDP 连接
- -l:只显示正在监听的服务
- -n:以数字形式显示地址和端口,而不是尝试解析主机名和服务名称
ufw status检测是否开启了防火墙
查看操作系统版本信息 :cat /etc/os-release
娱乐命令
动物说话
bash
## 更新软件包
sudo apt update
sudo apt install -y cowsay
cowsay hello shiyanlou
## 打印所有支持的动物
cowsay -l
## 使用'-f'选择动物种类
cowsay -f elephant hello shiyanloucalvin cheese daemon elephant eyes ghostbusters sheep
简易浏览器
bash
sudo apt-get install w3m
## 在linux下打开百度官网
w3m https://www.baidu.com