Can someone please enlighten on what the difference is when passing the 'j' and '-l -y' options to the 'ps' utility.

An other good 'ps' resource is welcome too.

Thanks

Sawan

Update:

'man ps' tells me:

-j jobs format
j BSD job control format.

l display BSD long format.
-l long format. The -y option is often useful with this.
-y Do not show flags; show rss in place of addr. This option can only be used with -l.

for those options. I don't quite get what each mean.

link|improve this question
1  
I'm with you. MAN pages are written for technical people by technical people for people who want to do technical things. For someone starting learning, MAN places are a deep level of hell... – Mark Henderson Dec 17 '09 at 1:45
feedback

migrated from stackoverflow.com Dec 17 '09 at 1:10

This question came from our site for professional and enthusiast programmers.

3 Answers

GNU ps accepts options in the UNIX style (preceded by a dash), the BSD style (no dash) and the GNU style (long option names preceded by two dashes).

The styles affect what columns are shown and what processes are included. For example, the Unix-style -j and -l only include the current user on the current session. If I use BSD-style j or l then all my processes (my UID) on any terminal are included.

The first two pages of the man page discuss the differences between the styles and show some examples illustrating the differences.

link|improve this answer
Wow, thats helpful. I will go through the man page properly. Thank you. – Sawan Dec 18 '09 at 1:58
feedback

Try using man ps to view the manual for the ps command.

link|improve this answer
feedback

Not sure if this is relevant or not but:

ps -u [username] | grep [process name]

is good for finding a particular process. Like when I've started an ssh session and can't remember where it's going :-)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.