Article title: quickly locate network services in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
For security reasons, it is necessary to find out which services are running. With the netstat command, we can print information about the Linux network subsystem, including running services. This command displays the program name and the process identifier of each socket. 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.