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
Is "plugging out" electronic devices an American expression?
In microwave frequencies, do you use a circulator when you need a (near) perfect diode?
Can the Protection from Evil and Good spell be used on the caster?
How to change the limits of integration
How to answer pointed "are you quitting" questioning when I don't want them to suspect
How to deal with fear of taking dependencies
Which Sci-Fi work first showed weapon of galactic-scale mass destruction?
How are circuits which use complex ICs normally simulated?
Why don't Unix/Linux systems traverse through directories until they find the required version of a linked library?
What does "rabbited" mean/imply in this sentence?
Where does the "burst of radiance" from Holy Weapon originate?
Output the Arecibo Message
Should I write numbers in words or as numerals when there are multiple next to each other?
Spanish for "widget"
Could a US political party gain complete control over the government by removing checks & balances?
Falsification in Math vs Science
Patience, young "Padovan"
What is the steepest angle that a canal can be traversable without locks?
How can I fix this gap between bookcases I made?
Time travel alters history but people keep saying nothing's changed
Does light intensity oscillate really fast since it is a wave?
Lethal sonic weapons
What is the best strategy for white in this position?
Why is the maximum length of OpenWrt’s root password 8 characters?
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