For security reasons, it is necessary to find out which services are running. with the help of the netstat command, we can print information about the Linux network subsystem, including the running services.
For security reasons, it is necessary to find out which services are running. with the help of the netstat command, we can print information about the Linux network subsystem, including the running services, this command displays the program name and the process identifier of each socket. you can run the netstat command as follows:
$ Netstat-atup
Or $ netstat-atup | grep LISTEN
Here we will explain the meaning of each parameter:
-T: Select all TCP services.
-U: Select all UDP services.
-A: it indicates that all listening and non-listening sockets are displayed.
-P: displays the process identifier and the program of each socket.
In this way, we can select different parameters for different purposes to better serve us.