What processes do `ps f` show? The 2019 Stack Overflow Developer Survey Results Are InElegantly get list of children processesHow to see what processes WERE running?ps to show only processes that match more than one condition (AND)list graphical processes from terminalGet a refreshing list of running specific processesShow running processes only — *not* threadsCan't find Cron-Initiated Processes Initiated on Amazon EC2 Serverps command - list all processes with given command regardless of userHow can I logically AND two selection conditions in ps?ps is not showing all processes
Why do UK politicians seemingly ignore opinion polls on Brexit?
What is the meaning of Triage in Cybersec world?
Why don't Unix/Linux systems traverse through directories until they find the required version of a linked library?
Springs with some finite mass
Should I use my personal or workplace e-mail when registering to external websites for work purpose?
JSON.serialize: is it possible to suppress null values of a map?
Inline version of a function returns different value than non-inline version
How come people say “Would of”?
A poker game description that does not feel gimmicky
Why could you hear an Amstrad CPC working?
Monty Hall variation
Where does the "burst of radiance" from Holy Weapon originate?
Dual Citizen. Exited the US on Italian passport recently
How can I create a character who can assume the widest possible range of creature sizes?
What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?
What does "sndry explns" mean in one of the Hitchhiker's guide books?
What is the use of option -o in the useradd command?
What do hard-Brexiteers want with respect to the Irish border?
How do you say "canon" as in "official for a story universe"?
Are there any other methods to apply to solving simultaneous equations?
Is three citations per paragraph excessive for undergraduate research paper?
Limit the amount of RAM Mathematica may access?
I see my dog run
Extreme, unacceptable situation and I can't attend work tomorrow morning
What processes do `ps f` show?
The 2019 Stack Overflow Developer Survey Results Are InElegantly get list of children processesHow to see what processes WERE running?ps to show only processes that match more than one condition (AND)list graphical processes from terminalGet a refreshing list of running specific processesShow running processes only — *not* threadsCan't find Cron-Initiated Processes Initiated on Amazon EC2 Serverps command - list all processes with given command regardless of userHow can I logically AND two selection conditions in ps?ps is not showing all processes
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
by ps from procps-ng
$ ps f | wc -l
225
$ ps -e | wc -l
410
$ ps | wc -l
4
ps -e
shows all the processes and ps
only those with current terminal as controlling terminal. What processes do ps f
show? Thanks.
ps
add a comment |
by ps from procps-ng
$ ps f | wc -l
225
$ ps -e | wc -l
410
$ ps | wc -l
4
ps -e
shows all the processes and ps
only those with current terminal as controlling terminal. What processes do ps f
show? Thanks.
ps
It depends on what system you are using. I would read the manual for your ps command.
– DisplayName
Apr 6 at 13:52
add a comment |
by ps from procps-ng
$ ps f | wc -l
225
$ ps -e | wc -l
410
$ ps | wc -l
4
ps -e
shows all the processes and ps
only those with current terminal as controlling terminal. What processes do ps f
show? Thanks.
ps
by ps from procps-ng
$ ps f | wc -l
225
$ ps -e | wc -l
410
$ ps | wc -l
4
ps -e
shows all the processes and ps
only those with current terminal as controlling terminal. What processes do ps f
show? Thanks.
ps
ps
edited Apr 6 at 21:27
Tim
asked Apr 6 at 13:35
TimTim
28.5k79269491
28.5k79269491
It depends on what system you are using. I would read the manual for your ps command.
– DisplayName
Apr 6 at 13:52
add a comment |
It depends on what system you are using. I would read the manual for your ps command.
– DisplayName
Apr 6 at 13:52
It depends on what system you are using. I would read the manual for your ps command.
– DisplayName
Apr 6 at 13:52
It depends on what system you are using. I would read the manual for your ps command.
– DisplayName
Apr 6 at 13:52
add a comment |
2 Answers
2
active
oldest
votes
You original wrote ps f
but now the question reads ps --forest
. The two are not the same...
$ ps f
PID TTY STAT TIME COMMAND
27614 pts/1 Ss 0:00 -ksh
27656 pts/1 R+ 0:00 _ ps f
3356 pts/0 Ss 0:00 -ksh
3370 pts/0 S+ 0:06 _ ssh mercury7
$ ps --forest
PID TTY TIME CMD
27614 pts/1 00:00:00 ksh
27658 pts/1 00:00:00 _ ps
They contain the same scope as ps g
and ps
eg
$ ps g
PID TTY STAT TIME COMMAND
3356 pts/0 Ss 0:00 -ksh
3370 pts/0 S+ 0:06 ssh mercury7
27614 pts/1 Ss 0:00 -ksh
28932 pts/1 R+ 0:00 ps g
$ ps
PID TTY TIME CMD
27614 pts/1 00:00:00 ksh
28755 pts/1 00:00:00 ps
add a comment |
The command ps f
, on an Ubuntu system, would show the exact same processes as ps
would show, but using an ASCII art process tree.
The option is an option that modifies the output format of ps
. It is listed in the ps
manual on Ubuntu under the section "OUTPUT MODIFIERS". It therefore does not modify what processes would be displayed.
Using it together with another option (e.g. ps f -e
) would modify only the output format of the command, not the selection of processes.
Not quite;ps f
shows more than justps
– Stephen Harris
Apr 6 at 15:42
@StephenHarris I can't see that they show a different set of processes. I did say that they produce different output formats. Would you care to elaborate?
– Kusalananda♦
Apr 6 at 21:57
In my tests,ps f
showed 4 process, including other terminal sessions, butps --format
just showed processes from the current terminal session.
– Stephen Harris
Apr 6 at 22:57
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f510901%2fwhat-processes-do-ps-f-show%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You original wrote ps f
but now the question reads ps --forest
. The two are not the same...
$ ps f
PID TTY STAT TIME COMMAND
27614 pts/1 Ss 0:00 -ksh
27656 pts/1 R+ 0:00 _ ps f
3356 pts/0 Ss 0:00 -ksh
3370 pts/0 S+ 0:06 _ ssh mercury7
$ ps --forest
PID TTY TIME CMD
27614 pts/1 00:00:00 ksh
27658 pts/1 00:00:00 _ ps
They contain the same scope as ps g
and ps
eg
$ ps g
PID TTY STAT TIME COMMAND
3356 pts/0 Ss 0:00 -ksh
3370 pts/0 S+ 0:06 ssh mercury7
27614 pts/1 Ss 0:00 -ksh
28932 pts/1 R+ 0:00 ps g
$ ps
PID TTY TIME CMD
27614 pts/1 00:00:00 ksh
28755 pts/1 00:00:00 ps
add a comment |
You original wrote ps f
but now the question reads ps --forest
. The two are not the same...
$ ps f
PID TTY STAT TIME COMMAND
27614 pts/1 Ss 0:00 -ksh
27656 pts/1 R+ 0:00 _ ps f
3356 pts/0 Ss 0:00 -ksh
3370 pts/0 S+ 0:06 _ ssh mercury7
$ ps --forest
PID TTY TIME CMD
27614 pts/1 00:00:00 ksh
27658 pts/1 00:00:00 _ ps
They contain the same scope as ps g
and ps
eg
$ ps g
PID TTY STAT TIME COMMAND
3356 pts/0 Ss 0:00 -ksh
3370 pts/0 S+ 0:06 ssh mercury7
27614 pts/1 Ss 0:00 -ksh
28932 pts/1 R+ 0:00 ps g
$ ps
PID TTY TIME CMD
27614 pts/1 00:00:00 ksh
28755 pts/1 00:00:00 ps
add a comment |
You original wrote ps f
but now the question reads ps --forest
. The two are not the same...
$ ps f
PID TTY STAT TIME COMMAND
27614 pts/1 Ss 0:00 -ksh
27656 pts/1 R+ 0:00 _ ps f
3356 pts/0 Ss 0:00 -ksh
3370 pts/0 S+ 0:06 _ ssh mercury7
$ ps --forest
PID TTY TIME CMD
27614 pts/1 00:00:00 ksh
27658 pts/1 00:00:00 _ ps
They contain the same scope as ps g
and ps
eg
$ ps g
PID TTY STAT TIME COMMAND
3356 pts/0 Ss 0:00 -ksh
3370 pts/0 S+ 0:06 ssh mercury7
27614 pts/1 Ss 0:00 -ksh
28932 pts/1 R+ 0:00 ps g
$ ps
PID TTY TIME CMD
27614 pts/1 00:00:00 ksh
28755 pts/1 00:00:00 ps
You original wrote ps f
but now the question reads ps --forest
. The two are not the same...
$ ps f
PID TTY STAT TIME COMMAND
27614 pts/1 Ss 0:00 -ksh
27656 pts/1 R+ 0:00 _ ps f
3356 pts/0 Ss 0:00 -ksh
3370 pts/0 S+ 0:06 _ ssh mercury7
$ ps --forest
PID TTY TIME CMD
27614 pts/1 00:00:00 ksh
27658 pts/1 00:00:00 _ ps
They contain the same scope as ps g
and ps
eg
$ ps g
PID TTY STAT TIME COMMAND
3356 pts/0 Ss 0:00 -ksh
3370 pts/0 S+ 0:06 ssh mercury7
27614 pts/1 Ss 0:00 -ksh
28932 pts/1 R+ 0:00 ps g
$ ps
PID TTY TIME CMD
27614 pts/1 00:00:00 ksh
28755 pts/1 00:00:00 ps
answered Apr 6 at 15:40
Stephen HarrisStephen Harris
27.4k35383
27.4k35383
add a comment |
add a comment |
The command ps f
, on an Ubuntu system, would show the exact same processes as ps
would show, but using an ASCII art process tree.
The option is an option that modifies the output format of ps
. It is listed in the ps
manual on Ubuntu under the section "OUTPUT MODIFIERS". It therefore does not modify what processes would be displayed.
Using it together with another option (e.g. ps f -e
) would modify only the output format of the command, not the selection of processes.
Not quite;ps f
shows more than justps
– Stephen Harris
Apr 6 at 15:42
@StephenHarris I can't see that they show a different set of processes. I did say that they produce different output formats. Would you care to elaborate?
– Kusalananda♦
Apr 6 at 21:57
In my tests,ps f
showed 4 process, including other terminal sessions, butps --format
just showed processes from the current terminal session.
– Stephen Harris
Apr 6 at 22:57
add a comment |
The command ps f
, on an Ubuntu system, would show the exact same processes as ps
would show, but using an ASCII art process tree.
The option is an option that modifies the output format of ps
. It is listed in the ps
manual on Ubuntu under the section "OUTPUT MODIFIERS". It therefore does not modify what processes would be displayed.
Using it together with another option (e.g. ps f -e
) would modify only the output format of the command, not the selection of processes.
Not quite;ps f
shows more than justps
– Stephen Harris
Apr 6 at 15:42
@StephenHarris I can't see that they show a different set of processes. I did say that they produce different output formats. Would you care to elaborate?
– Kusalananda♦
Apr 6 at 21:57
In my tests,ps f
showed 4 process, including other terminal sessions, butps --format
just showed processes from the current terminal session.
– Stephen Harris
Apr 6 at 22:57
add a comment |
The command ps f
, on an Ubuntu system, would show the exact same processes as ps
would show, but using an ASCII art process tree.
The option is an option that modifies the output format of ps
. It is listed in the ps
manual on Ubuntu under the section "OUTPUT MODIFIERS". It therefore does not modify what processes would be displayed.
Using it together with another option (e.g. ps f -e
) would modify only the output format of the command, not the selection of processes.
The command ps f
, on an Ubuntu system, would show the exact same processes as ps
would show, but using an ASCII art process tree.
The option is an option that modifies the output format of ps
. It is listed in the ps
manual on Ubuntu under the section "OUTPUT MODIFIERS". It therefore does not modify what processes would be displayed.
Using it together with another option (e.g. ps f -e
) would modify only the output format of the command, not the selection of processes.
edited Apr 6 at 21:51
answered Apr 6 at 14:03
Kusalananda♦Kusalananda
140k17261436
140k17261436
Not quite;ps f
shows more than justps
– Stephen Harris
Apr 6 at 15:42
@StephenHarris I can't see that they show a different set of processes. I did say that they produce different output formats. Would you care to elaborate?
– Kusalananda♦
Apr 6 at 21:57
In my tests,ps f
showed 4 process, including other terminal sessions, butps --format
just showed processes from the current terminal session.
– Stephen Harris
Apr 6 at 22:57
add a comment |
Not quite;ps f
shows more than justps
– Stephen Harris
Apr 6 at 15:42
@StephenHarris I can't see that they show a different set of processes. I did say that they produce different output formats. Would you care to elaborate?
– Kusalananda♦
Apr 6 at 21:57
In my tests,ps f
showed 4 process, including other terminal sessions, butps --format
just showed processes from the current terminal session.
– Stephen Harris
Apr 6 at 22:57
Not quite;
ps f
shows more than just ps
– Stephen Harris
Apr 6 at 15:42
Not quite;
ps f
shows more than just ps
– Stephen Harris
Apr 6 at 15:42
@StephenHarris I can't see that they show a different set of processes. I did say that they produce different output formats. Would you care to elaborate?
– Kusalananda♦
Apr 6 at 21:57
@StephenHarris I can't see that they show a different set of processes. I did say that they produce different output formats. Would you care to elaborate?
– Kusalananda♦
Apr 6 at 21:57
In my tests,
ps f
showed 4 process, including other terminal sessions, but ps --format
just showed processes from the current terminal session.– Stephen Harris
Apr 6 at 22:57
In my tests,
ps f
showed 4 process, including other terminal sessions, but ps --format
just showed processes from the current terminal session.– Stephen Harris
Apr 6 at 22:57
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f510901%2fwhat-processes-do-ps-f-show%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
It depends on what system you are using. I would read the manual for your ps command.
– DisplayName
Apr 6 at 13:52