Output system processes via ps












2















I need to output system processes via ps. As far as I know, flag F (first column) is responsible for this: 1 means that this is system process. How can I output only these processes without others?



'ps -el' example:












share|improve this question




















  • 1





    According to man ps, a 1 in the F column means "forked but didn't exec", not system process. On my system, several of my web browser processes show up with F=1, and they're definitely not special.

    – Paul
    Jun 1 '13 at 17:52






  • 1





    There are various possible things that may conceivably be called “system process”, but this is not standard terminology. The F column has nothing to do with any reasonable meaning of “system process”. What are you trying to achieve?

    – Gilles
    Jun 1 '13 at 19:31
















2















I need to output system processes via ps. As far as I know, flag F (first column) is responsible for this: 1 means that this is system process. How can I output only these processes without others?



'ps -el' example:












share|improve this question




















  • 1





    According to man ps, a 1 in the F column means "forked but didn't exec", not system process. On my system, several of my web browser processes show up with F=1, and they're definitely not special.

    – Paul
    Jun 1 '13 at 17:52






  • 1





    There are various possible things that may conceivably be called “system process”, but this is not standard terminology. The F column has nothing to do with any reasonable meaning of “system process”. What are you trying to achieve?

    – Gilles
    Jun 1 '13 at 19:31














2












2








2








I need to output system processes via ps. As far as I know, flag F (first column) is responsible for this: 1 means that this is system process. How can I output only these processes without others?



'ps -el' example:












share|improve this question
















I need to output system processes via ps. As far as I know, flag F (first column) is responsible for this: 1 means that this is system process. How can I output only these processes without others?



'ps -el' example:









command-line system process






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 1 '13 at 18:36









Kevin Bowen

14.8k155970




14.8k155970










asked Jun 1 '13 at 17:21









snorlax212snorlax212

1112




1112








  • 1





    According to man ps, a 1 in the F column means "forked but didn't exec", not system process. On my system, several of my web browser processes show up with F=1, and they're definitely not special.

    – Paul
    Jun 1 '13 at 17:52






  • 1





    There are various possible things that may conceivably be called “system process”, but this is not standard terminology. The F column has nothing to do with any reasonable meaning of “system process”. What are you trying to achieve?

    – Gilles
    Jun 1 '13 at 19:31














  • 1





    According to man ps, a 1 in the F column means "forked but didn't exec", not system process. On my system, several of my web browser processes show up with F=1, and they're definitely not special.

    – Paul
    Jun 1 '13 at 17:52






  • 1





    There are various possible things that may conceivably be called “system process”, but this is not standard terminology. The F column has nothing to do with any reasonable meaning of “system process”. What are you trying to achieve?

    – Gilles
    Jun 1 '13 at 19:31








1




1





According to man ps, a 1 in the F column means "forked but didn't exec", not system process. On my system, several of my web browser processes show up with F=1, and they're definitely not special.

– Paul
Jun 1 '13 at 17:52





According to man ps, a 1 in the F column means "forked but didn't exec", not system process. On my system, several of my web browser processes show up with F=1, and they're definitely not special.

– Paul
Jun 1 '13 at 17:52




1




1





There are various possible things that may conceivably be called “system process”, but this is not standard terminology. The F column has nothing to do with any reasonable meaning of “system process”. What are you trying to achieve?

– Gilles
Jun 1 '13 at 19:31





There are various possible things that may conceivably be called “system process”, but this is not standard terminology. The F column has nothing to do with any reasonable meaning of “system process”. What are you trying to achieve?

– Gilles
Jun 1 '13 at 19:31










3 Answers
3






active

oldest

votes


















0














Try ps aux see if that works for you. Please let me know if you need further help on this.






share|improve this answer



















  • 1





    I meant I need to filter process list to display system processes only, ps aux display all of them. This is task from high school, not for practical using.

    – snorlax212
    Jun 1 '13 at 17:41











  • I see, I thought you were trying to use ps to show certain things. Actually, you want ps to display what it finds, and then grep for the root processes as Tomas identified.

    – RGS
    Jun 1 '13 at 18:42



















0














From man ps :



ps -aux


If the user named "x" does not exist, this ps may interpret the command as "ps aux"



so, for only root process, use:



ps -auroot


or equal



ps -au root





share|improve this answer
























  • Not helpful, redundant (use of ps was already stated by another post), and incorrect for this situation. You misread the man page at linux.die.net.

    – RGS
    Jun 1 '13 at 17:37













  • @RGS maybe, or maybe not. ps aux is equal to ps -el, so also your answer is not helpful. maybe you misread question.

    – girardengo
    Jun 1 '13 at 18:01











  • you're right; I misunderstood the question. OP wanted to grep through the results of ps, he/she just didn't know how to say it.

    – RGS
    Jun 1 '13 at 18:44



















0














Assuming you don't mess around with sudo or root, sytem services would run under root



ps aux | grep root


First will list all services running and second just takes root proceses.
This does not list servers (aeg apache) as many of them run under their own users
but apache is not fully a system process






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2faskubuntu.com%2fquestions%2f302909%2foutput-system-processes-via-ps%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Try ps aux see if that works for you. Please let me know if you need further help on this.






    share|improve this answer



















    • 1





      I meant I need to filter process list to display system processes only, ps aux display all of them. This is task from high school, not for practical using.

      – snorlax212
      Jun 1 '13 at 17:41











    • I see, I thought you were trying to use ps to show certain things. Actually, you want ps to display what it finds, and then grep for the root processes as Tomas identified.

      – RGS
      Jun 1 '13 at 18:42
















    0














    Try ps aux see if that works for you. Please let me know if you need further help on this.






    share|improve this answer



















    • 1





      I meant I need to filter process list to display system processes only, ps aux display all of them. This is task from high school, not for practical using.

      – snorlax212
      Jun 1 '13 at 17:41











    • I see, I thought you were trying to use ps to show certain things. Actually, you want ps to display what it finds, and then grep for the root processes as Tomas identified.

      – RGS
      Jun 1 '13 at 18:42














    0












    0








    0







    Try ps aux see if that works for you. Please let me know if you need further help on this.






    share|improve this answer













    Try ps aux see if that works for you. Please let me know if you need further help on this.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jun 1 '13 at 17:28









    RGSRGS

    1482




    1482








    • 1





      I meant I need to filter process list to display system processes only, ps aux display all of them. This is task from high school, not for practical using.

      – snorlax212
      Jun 1 '13 at 17:41











    • I see, I thought you were trying to use ps to show certain things. Actually, you want ps to display what it finds, and then grep for the root processes as Tomas identified.

      – RGS
      Jun 1 '13 at 18:42














    • 1





      I meant I need to filter process list to display system processes only, ps aux display all of them. This is task from high school, not for practical using.

      – snorlax212
      Jun 1 '13 at 17:41











    • I see, I thought you were trying to use ps to show certain things. Actually, you want ps to display what it finds, and then grep for the root processes as Tomas identified.

      – RGS
      Jun 1 '13 at 18:42








    1




    1





    I meant I need to filter process list to display system processes only, ps aux display all of them. This is task from high school, not for practical using.

    – snorlax212
    Jun 1 '13 at 17:41





    I meant I need to filter process list to display system processes only, ps aux display all of them. This is task from high school, not for practical using.

    – snorlax212
    Jun 1 '13 at 17:41













    I see, I thought you were trying to use ps to show certain things. Actually, you want ps to display what it finds, and then grep for the root processes as Tomas identified.

    – RGS
    Jun 1 '13 at 18:42





    I see, I thought you were trying to use ps to show certain things. Actually, you want ps to display what it finds, and then grep for the root processes as Tomas identified.

    – RGS
    Jun 1 '13 at 18:42













    0














    From man ps :



    ps -aux


    If the user named "x" does not exist, this ps may interpret the command as "ps aux"



    so, for only root process, use:



    ps -auroot


    or equal



    ps -au root





    share|improve this answer
























    • Not helpful, redundant (use of ps was already stated by another post), and incorrect for this situation. You misread the man page at linux.die.net.

      – RGS
      Jun 1 '13 at 17:37













    • @RGS maybe, or maybe not. ps aux is equal to ps -el, so also your answer is not helpful. maybe you misread question.

      – girardengo
      Jun 1 '13 at 18:01











    • you're right; I misunderstood the question. OP wanted to grep through the results of ps, he/she just didn't know how to say it.

      – RGS
      Jun 1 '13 at 18:44
















    0














    From man ps :



    ps -aux


    If the user named "x" does not exist, this ps may interpret the command as "ps aux"



    so, for only root process, use:



    ps -auroot


    or equal



    ps -au root





    share|improve this answer
























    • Not helpful, redundant (use of ps was already stated by another post), and incorrect for this situation. You misread the man page at linux.die.net.

      – RGS
      Jun 1 '13 at 17:37













    • @RGS maybe, or maybe not. ps aux is equal to ps -el, so also your answer is not helpful. maybe you misread question.

      – girardengo
      Jun 1 '13 at 18:01











    • you're right; I misunderstood the question. OP wanted to grep through the results of ps, he/she just didn't know how to say it.

      – RGS
      Jun 1 '13 at 18:44














    0












    0








    0







    From man ps :



    ps -aux


    If the user named "x" does not exist, this ps may interpret the command as "ps aux"



    so, for only root process, use:



    ps -auroot


    or equal



    ps -au root





    share|improve this answer













    From man ps :



    ps -aux


    If the user named "x" does not exist, this ps may interpret the command as "ps aux"



    so, for only root process, use:



    ps -auroot


    or equal



    ps -au root






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jun 1 '13 at 17:35









    girardengogirardengo

    3,8521627




    3,8521627













    • Not helpful, redundant (use of ps was already stated by another post), and incorrect for this situation. You misread the man page at linux.die.net.

      – RGS
      Jun 1 '13 at 17:37













    • @RGS maybe, or maybe not. ps aux is equal to ps -el, so also your answer is not helpful. maybe you misread question.

      – girardengo
      Jun 1 '13 at 18:01











    • you're right; I misunderstood the question. OP wanted to grep through the results of ps, he/she just didn't know how to say it.

      – RGS
      Jun 1 '13 at 18:44



















    • Not helpful, redundant (use of ps was already stated by another post), and incorrect for this situation. You misread the man page at linux.die.net.

      – RGS
      Jun 1 '13 at 17:37













    • @RGS maybe, or maybe not. ps aux is equal to ps -el, so also your answer is not helpful. maybe you misread question.

      – girardengo
      Jun 1 '13 at 18:01











    • you're right; I misunderstood the question. OP wanted to grep through the results of ps, he/she just didn't know how to say it.

      – RGS
      Jun 1 '13 at 18:44

















    Not helpful, redundant (use of ps was already stated by another post), and incorrect for this situation. You misread the man page at linux.die.net.

    – RGS
    Jun 1 '13 at 17:37







    Not helpful, redundant (use of ps was already stated by another post), and incorrect for this situation. You misread the man page at linux.die.net.

    – RGS
    Jun 1 '13 at 17:37















    @RGS maybe, or maybe not. ps aux is equal to ps -el, so also your answer is not helpful. maybe you misread question.

    – girardengo
    Jun 1 '13 at 18:01





    @RGS maybe, or maybe not. ps aux is equal to ps -el, so also your answer is not helpful. maybe you misread question.

    – girardengo
    Jun 1 '13 at 18:01













    you're right; I misunderstood the question. OP wanted to grep through the results of ps, he/she just didn't know how to say it.

    – RGS
    Jun 1 '13 at 18:44





    you're right; I misunderstood the question. OP wanted to grep through the results of ps, he/she just didn't know how to say it.

    – RGS
    Jun 1 '13 at 18:44











    0














    Assuming you don't mess around with sudo or root, sytem services would run under root



    ps aux | grep root


    First will list all services running and second just takes root proceses.
    This does not list servers (aeg apache) as many of them run under their own users
    but apache is not fully a system process






    share|improve this answer




























      0














      Assuming you don't mess around with sudo or root, sytem services would run under root



      ps aux | grep root


      First will list all services running and second just takes root proceses.
      This does not list servers (aeg apache) as many of them run under their own users
      but apache is not fully a system process






      share|improve this answer


























        0












        0








        0







        Assuming you don't mess around with sudo or root, sytem services would run under root



        ps aux | grep root


        First will list all services running and second just takes root proceses.
        This does not list servers (aeg apache) as many of them run under their own users
        but apache is not fully a system process






        share|improve this answer













        Assuming you don't mess around with sudo or root, sytem services would run under root



        ps aux | grep root


        First will list all services running and second just takes root proceses.
        This does not list servers (aeg apache) as many of them run under their own users
        but apache is not fully a system process







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 1 '13 at 18:36









        TomasTomas

        213




        213






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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%2faskubuntu.com%2fquestions%2f302909%2foutput-system-processes-via-ps%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

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?