Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
-4 votes
1 answer
409 views

ps command: how does the '-q' option work?

According with the ps command, for the -q option Through the man is indicated: -q pidlist Select by PID (quick mode). This selects the processes whose process ID numbers appear in ...
Manuel Jordan's user avatar
0 votes
1 answer
705 views

ps command: how show the complete command with options, pipes and redirection? (or all together)

About the ps command, consider if for simplicity: in tty3 is executed the yes command in tty4 is executed the yes > /dev/null command through ps I need to show in the report the complete command ...
Manuel Jordan's user avatar
-1 votes
1 answer
691 views

ps command: how does the 'r' option work? How should be used?

About the ps command for the r option According with man ps it indicates r Restrict the selection to only running processes. And according with ps --help a it indicates r only ...
Manuel Jordan's user avatar
0 votes
0 answers
35 views

ps command: Practical difference between the -p and -q options [duplicate]

According with man ps exists: -p pidlist Select by PID. This selects the processes whose process ID numbers appear in pidlist. Identical to p and --pid. -q pidlist Select by PID ...
Manuel Jordan's user avatar
1 vote
1 answer
62 views

ps command: strange behavior with 'O' option, extra column/header does not appear as expected

About the ps command - to add one/many extra column/header with the default headers according with the option(s) used with the ps command - it through O the option. Intro If ps x is executed the ...
Manuel Jordan's user avatar
4 votes
1 answer
3k views

ps command: how to know all the headers with their respective descriptions?

Through the following valuable tutorial: Ps Command in Linux (List Processes) If the ps -ef command is executed then the output has the following header: UID PID PPID C STIME TTY ...
Manuel Jordan's user avatar
0 votes
0 answers
710 views

What does '-x' mean in the context of the 'ps' command?

If is executed ps x (observe there is no -) then the output is as follows: PID TTY STAT TIME COMMAND 2489 ? Ss 0:00 /lib/systemd/systemd --user 2490 ? S 0:00 (sd-pam) ...
Manuel Jordan's user avatar
0 votes
1 answer
628 views

ps command: How generate the report of processes but according with only either tty or pts?

Through the ps --help all command about the option(s) related with tty exists the following: -a all with tty, except session leaders a all with tty, including ...
Manuel Jordan's user avatar
4 votes
2 answers
457 views

What does '-P' mean in the context of the 'ps' command?

If is executed ps -p 3384 3395 (observe -p is lowercase) then the output is as follows: PID TTY STAT TIME COMMAND 3384 tty6 S+ 0:00 man ls 3395 tty6 S+ 0:00 pager Until ...
Manuel Jordan's user avatar
3 votes
1 answer
2k views

ps: error: conflicting format options

$ ps -l -o ruid,euid,rgid,egid,sess -p $$ error: conflicting format options Usage: ps [options] Try 'ps --help <simple|list|output|threads|misc|all>' or 'ps --help <s|l|o|t|m|a>' ...
Tim's user avatar
  • 103k
1 vote
1 answer
3k views

ps: output modifiers vs output format control

In the manpage of ps -j Jobs format. -f Do full-format listing. -o format User-defined format. $ ps -j -o ppid,sid error: can not use output modifiers with user-defined output $ ps -f -o ...
Tim's user avatar
  • 103k