1. 查看linux发行版
cat /etc/issue
cat /etc/redhat-release
lsb_release -a
cat /etc/*-release
grub.conf 也有点提示 /etc/issue通用~ /etc/redhat-release只有RH系有~
rpm -qa|grep release
2. 显示网络状态
netstat [-acCeFghilMnNoprstuvVwx][-A网络类型>][--ip]
netstat -nltp
3. 获取当前登录用户的ip地址
# who -u
# who -u am i
# who am i
# echo $SSH_CONNECTION
# w
4. curl -I
阅读(1696) | 评论(0) | 转发(0) |