answersLogoWhite

0


Best Answer

There is one general command for the UNIX (actual UNIX not Linux) which will yield which port is being used by what service: lsof -i

For Linux it is: netstat

For more information for either command, please see these sources:

lsof http://www-uxsup.csx.cam.ac.UK/security/lsof.HTML

netstat http://www-uxsup.csx.cam.ac.UK/security/netstat.HTML

Additional :

'netstat' is a standard tcp/ip utility, so it will work on all platforms using tcp/ip, including windows.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you find out which port is being used by which process in a Unix environment?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

In unix how will you find extension of file using commands?

Unix files do not rely on extensions, therefore there is no command to find them.


What is the Unix command to get the name of a process?

Use the 'PS' (process status) command to find out the name of the executable file for a process. If you use the long form and you know the process id, try: PS -p process-id -l or PS -p process-id -f


How do you find the inode number in Unix?

ls -i


Where would you find a host file on a unix server?

The host file in Unix is usually located in the /etc directory.


Where can someone find information about Unix programming?

One can read the book The Art of UNIX Programming by Eric S. Raymond. A person can also find tutorials at many locations on the internet, including right on the official UNIX website, eHow, and more.


What are some examples of the Unix find command?

Some examples of the Unix find command are "find . -print" or "find /-name foo". One other command could be "find /home/wpollock/foo" or "find /tmp /var/tmp. $HOME -name foo".


Where can one find information on the UNIX file system?

Information on the UNIX file system can be found in some magazines dedicated to technology such as Science Illustrated. Information can also be found on UNIX's official website.


How do you find which unix flavor we are using?

Use the 'uname -a' command. It reports on the Unix system, version, machine name, amongst other things.


Which UNIX system directory contains configuration files such as the passwd file?

Configuration files are typically stored in the /etc directory. They can, of course, be anywhere the implementer wishes them to be as long as the process knows where to find them.


Where do you find unix source code?

The true Unix source code is copyrighted; it doesn't exist anywhere specifically on the net. If you are interested in how something works in Unix you are better off looking at the Linux source code that accomplishes that task.


How do you find files in Linux and Unix?

Linux and Unix and their variants have several different ways of locating files. each of the below commands can be used to locate files.findlocatewheriswhich


What is the Command to display the default shell in unix?

There isn't a concept of a 'default' shell in Unix; you may have a login shell specified by the system administrator for use when you log in. Although it isn't a fool-proof way to find your shell, you could use the command: echo $SHELL or use the 'finger' command to see what your default login shell environment is. You could also 'grep' for your information in the password file because the last field is your login environment shell.