What is the command to see on which port which service is running?



What is the command to see on which port which service is running?..

Answer / 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

More Linux Commands Interview Questions

What command you use for cpio to create a backup called backup.cpio of all the users’ home dirs?

2 Answers  


how is "to run even after user logs out"

2 Answers   Google,


Explain about the command lynx?

1 Answers  


What is $@ in makefile?

1 Answers  


How many cmd commands are there?

1 Answers  


How do you create a file in linux?

1 Answers  


What is env command in linux?

1 Answers  


Explain how you would find a specific string in a file.

1 Answers  


in unix how to change old name to new name

7 Answers   Google,


What could be the problem when a command that was issued gave a different result from the last time it was used?

1 Answers  


How to check load balance using linux command?

1 Answers   Rakuten,


What are different command to check ram, process and hdd of linux machine?

1 Answers  


Categories