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 http://linux.chinaunix.net
相关热门文章
给主人留下些什么吧!~~
评论热议