N/APosted on - 02/08/2013
I am a new user of Linux operating system. I want to detect that a process is using TCP port or UDP port. Is it able to trace what port is being used in any process? I want to find out the information on AiX. Can aix identify udp port? Please tell me step by step process to do this. Any idea and suggestion are highly welcomed. Waiting for a prompt and positive response.
Can aix identify udp port on Linux?
If you use the command for checking processes currently running in the system, the outputs from that command will let you know the ports as well as the port types (UDP or TCP) being used by all processes. The outputs are shown as a list from which you can observe the particular process that you are interested in. Alternatively, you can filter the outputs to begin with by combining the "grep" command with the "ps" command.
Here are the commands.
ps -ef (without any filter)
ps -ef | grep -i processname (with a filter so that your process is displayed if found)
Hope it helps.