linux 命令
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 http://linux.chinaunix.net
阅读(538) | 评论(0) | 转发(0) |
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
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
相关热门文章
给主人留下些什么吧!~~
评论热议