Question: After executing the command below, how can we determine the process listening on port 5 6 7 8 ? ubuntu@ubuntu:~$ netstat - an | grep

After executing the command below, how can we determine the process listening on port 5678?
ubuntu@ubuntu:~$ netstat -an | grep tcp | grep -i listen
tcp 00127.0.0.1:6310.0.0.0:* LISTEN
tcp 000.0.0.0:56780.0.0.0:* LISTEN
tcp 00127.0.0.53:530.0.0.0:* LISTEN
tcp600 :::5678 :::* LISTEN
tcp600 :::21 :::* LISTEN
tcp600 :::80 :::* LISTEN
tcp600 ::1:631 :::* LISTEN
Question 16Answer
a.
Executing ps aux | grep 5678
b.
Executing, as root, the command netstat -p 5678
c.
Executing, as root, the command lsof -i:5678
d.
Executing, as root, the command netstat /port 5678

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!