2 views

Problem:

[developer@askdevops ~]$ netstat -an
-bash: netstat: command not found
[developer@askdevops ~]$

Solution: Install net-tools as root user

 yum install net-tools

Yum output:..

Installed:
  net-tools.x86_64 0:2.0-0.24.20131004git.el7

Complete!

Checking again:

[root@askdevops ~]# netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN
tcp        0      0 10.0.2.15:22            10.0.2.2:50407          ESTABLISHED
tcp        0      0 10.0.2.15:22            10.0.2.2:50405          ESTABLISHED
tcp6       0      0 :::22                   :::*                    LISTEN
tcp6       0      0 ::1:25                  :::*                    LISTEN
udp        0      0 0.0.0.0:68              0.0.0.0:*
udp        0      0 127.0.0.1:323           0.0.0.0:*
udp6       0      0 ::1:323                 :::*
raw6       0      0 :::58                   :::*                    7
Jan 17, 2017 by | 2 views
Articles for DevOps Geeks
MobaXterm Customization
CHMOD Explained!
Bash history powerful tips
Ubuntu bash from Windows
..