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;








-5















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.










share|improve this question
























  • It depends on what system you are using. I would read the manual for your ps command.

    – DisplayName
    Apr 6 at 13:52

















-5















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.










share|improve this question
























  • It depends on what system you are using. I would read the manual for your ps command.

    – DisplayName
    Apr 6 at 13:52













-5












-5








-5








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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










2 Answers
2






active

oldest

votes


















1














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





share|improve this answer






























    3














    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.






    share|improve this answer

























    • 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












    • 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











    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
    );



    );













    draft saved

    draft discarded


















    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









    1














    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





    share|improve this answer



























      1














      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





      share|improve this answer

























        1












        1








        1







        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





        share|improve this answer













        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






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 6 at 15:40









        Stephen HarrisStephen Harris

        27.4k35383




        27.4k35383























            3














            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.






            share|improve this answer

























            • 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












            • 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















            3














            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.






            share|improve this answer

























            • 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












            • 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













            3












            3








            3







            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.






            share|improve this answer















            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.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 6 at 21:51

























            answered Apr 6 at 14:03









            KusalanandaKusalananda

            140k17261436




            140k17261436












            • 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












            • 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

















            • 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












            • 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
















            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

















            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

            Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

            Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.