Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

closed as off topic by nhinkle Aug 12 '12 at 5:06

Questions on Super User are expected to relate to computer software or computer hardware within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
I think this post answers my question better, sorry for ambiguity. serverfault.com/questions/95171/options-of-the-ps-utility –  Sawan Dec 18 '09 at 2:01
    
I understand you asked this quite some time ago, but just for future reference, please do not cross-post questions on multiple Stack Exchange sites. Thanks. –  nhinkle Aug 12 '12 at 5:06

1 Answer 1

The ultimate resource would be the ps man page. You can access this from your terminal as well by typing man ps.

As for the options:

-j 	jobs format
-l  	long format
-y  	Do not show flags; show rss in place of addr. This option can
    	only be used with -l.
output of each switch (other combinations are possible):

[john@awesome]$ps -j
PID  PGID   SID TTY          TIME CMD
30693 30693 30693 pts/1    00:00:00 bash
30879 30879 30693 pts/1    00:00:00 ps

[john@awesome]$ps -l
F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
0 S  1089 30693 30691  0  78   3 -  1166 wait   pts/1    00:00:00 bash
0 R  1089 30882 30693  0  80   3 -  1052 -      pts/1    00:00:00 ps

[john@awesome]$ps -ly
S   UID   PID  PPID  C PRI  NI   RSS    SZ WCHAN  TTY          TIME CMD
S  1089 30693 30691  0  78   3  1488  1166 wait   pts/1    00:00:00 bash
R  1089 30890 30693  0  80   3   820  1052 -      pts/1    00:00:00 ps
share|improve this answer

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