adspace
What is the command to see on which port which service is running?
Answer Posted / Sandeep Kumar Pavaya
You can use the 'netstat' command with appropriate flags to view network connections and the ports associated with running services. For example, to list open connections, you can run `netstat -a`. To find out which port a specific service is using, you might need additional tools like 'lsof' or 'ss'. You could use commands like `lsof -i :portnumber` or `ss -t -p -a | grep :portnumber`.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers