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.
Unix files do not rely on extensions, therefore there is no command to find them.
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
ls -i
The host file in Unix is usually located in the /etc directory.
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.
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".
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.
Use the 'uname -a' command. It reports on the Unix system, version, machine name, amongst other things.
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.
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.
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
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.