While responding to an incident on a Linux server, the administrator needs to disable unused services. Which of the following commands can be used to see processes that are listening on a TCP port?
A. Lsof
B. Tcpdump
C. Top
D. Ifconfig
One Comment on “Which of the following commands can be used to see processes that are listening on a TCP port?”
Super_Mariosays:
** lsof is a command meaning “list open files”, which is used in many Unix-like systems to report a list of all open files and the processes that opened them.
** tcpdump is a most powerful and widely used command-line packets sniffer or package analyzer tool which is used to capture or filter TCP/IP packets that received or transferred over a network on a specific interface. It is available under most of the Linux/Unix based operating systems.
** top is a task manager program found in many Unix-like operating systems that displays information about CPU and memory utilization
** ifconfig is a system administration utility in Unix-like operating systems for network interface configuration. The utility is a command line interface tool and is also used in the system startup scripts of many operating systems
So the answer is most definitively A
** lsof is a command meaning “list open files”, which is used in many Unix-like systems to report a list of all open files and the processes that opened them.
** tcpdump is a most powerful and widely used command-line packets sniffer or package analyzer tool which is used to capture or filter TCP/IP packets that received or transferred over a network on a specific interface. It is available under most of the Linux/Unix based operating systems.
** top is a task manager program found in many Unix-like operating systems that displays information about CPU and memory utilization
** ifconfig is a system administration utility in Unix-like operating systems for network interface configuration. The utility is a command line interface tool and is also used in the system startup scripts of many operating systems
So the answer is most definitively A
0
0