SUSE Linux 的netstat



想要看看服务器上都有哪些端口在访问,用一下netstat,结果竟然没有办法使用。

operator@OA8PRD:~> netstat
If 'netstat' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf netstat

operator@OA8PRD:/> lsb_release -a
LSB Version: n/a
Distributor ID: SUSE LINUX
Description: SUSE Linux Enterprise Server 12
Release: 12
Codename: 12
SUSE的版本是SUSE Linux Enterprise Server 12。


operator@OA8PRD:~> cnf netstat
                      
The program 'netstat' can be found in following packages:
  * net-tools [ path: /bin/netstat, repository: zypp (update) ]
  * net-tools [ path: /bin/netstat, repository: zypp (SLES12-12-0) ]

Try installing with:
    sudo zypper install net-tools

operator@OA8PRD:~> sudo zypper install net-tools

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

root's password:
Loading repository data...
Reading installed packages...
'net-tools' is already installed.
No update candidate for 'net-tools-1.60-764.185.x86_64'. The highest available version is already installed.
Resolving package dependencies...

奇了怪了,SUSE百度能查到的资源不多,翻墙到海外google终于找到了一点资料。

Deprecated Tool       Alternative Tool
arp                                ip n
ifconfig                        ip a
ipmaddr                      ip maddr
iptunnel                      ip tunnel
netstat                        ss
                                   ip route (netstat -r)
                                   ip -s link (netstat -i)
route                           ip r
mii-tool                      ethtool
nameif                        ifrename
原来是要废弃了啊!那就是ss -t好了。

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值