想要看看服务器上都有哪些端口在访问,用一下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好了。