confusing ps command
Hi,
I have an Oracle Instance running. To see the oracle processes i use usually the following command:
ps -ef | grep oracle
This gives me a list of the processes like:
orash4 13806 16830Feb 13 ?0:00 oracleSH4DESCRIPTION=(LOCAL=NO)(SDU=32768))
With 'ps -p 13806' I get the following:
13806 ?0:00 oracle
Can somebody explain the difference of the two proccess names
Thanks
Erindia
[442 byte] By [
Erindia] at [2007-11-26 7:19:09]

# 1
The manpage explains it quite clearly.
The -f flag to ps tells ps to generate a "full" listing, so rather than just listing pid, tty, time and the command, it will also display things like memory usage, user, stime and arguments.
-p just returns the a non-full list of the processes specified as its argument.
You can combine arguments, so for example:
ps -ef |grep 13806
will return the same thing as
ps -fp 13806
see "man ps".
7/M.