How to hide command from htop ubuntu 16.4?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-1
down vote

favorite












enter image description here



I have problem in htop in Ubuntu 16.4 server



I have Ubuntu 16.4 Server and I want to hide command from (htop) There is an example of pictures







share|improve this question












migrated from serverfault.com Feb 19 at 13:41


This question came from our site for system and network administrators.


















    up vote
    -1
    down vote

    favorite












    enter image description here



    I have problem in htop in Ubuntu 16.4 server



    I have Ubuntu 16.4 Server and I want to hide command from (htop) There is an example of pictures







    share|improve this question












    migrated from serverfault.com Feb 19 at 13:41


    This question came from our site for system and network administrators.
















      up vote
      -1
      down vote

      favorite









      up vote
      -1
      down vote

      favorite











      enter image description here



      I have problem in htop in Ubuntu 16.4 server



      I have Ubuntu 16.4 Server and I want to hide command from (htop) There is an example of pictures







      share|improve this question












      enter image description here



      I have problem in htop in Ubuntu 16.4 server



      I have Ubuntu 16.4 Server and I want to hide command from (htop) There is an example of pictures









      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 8 at 9:15









      total min

      1




      1




      migrated from serverfault.com Feb 19 at 13:41


      This question came from our site for system and network administrators.






      migrated from serverfault.com Feb 19 at 13:41


      This question came from our site for system and network administrators.






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          -1
          down vote













          have you tried htop --help ?



          -p --pid=PID,[,PID,PID...] Show only the given PIDs



          Now all you need is pgrep to get PIDs.



          And as result:



          htop -p "$(pgrep -vfd, 'snapd|firefox|otherstuff')"





          share|improve this answer




















          • The list of pids isn't going to remain static. Soon there will be a discrepancy between the argument and the processes which are actually running.
            – kasperd
            Feb 18 at 14:29










          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          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%2f425180%2fhow-to-hide-command-from-htop-ubuntu-16-4%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          -1
          down vote













          have you tried htop --help ?



          -p --pid=PID,[,PID,PID...] Show only the given PIDs



          Now all you need is pgrep to get PIDs.



          And as result:



          htop -p "$(pgrep -vfd, 'snapd|firefox|otherstuff')"





          share|improve this answer




















          • The list of pids isn't going to remain static. Soon there will be a discrepancy between the argument and the processes which are actually running.
            – kasperd
            Feb 18 at 14:29














          up vote
          -1
          down vote













          have you tried htop --help ?



          -p --pid=PID,[,PID,PID...] Show only the given PIDs



          Now all you need is pgrep to get PIDs.



          And as result:



          htop -p "$(pgrep -vfd, 'snapd|firefox|otherstuff')"





          share|improve this answer




















          • The list of pids isn't going to remain static. Soon there will be a discrepancy between the argument and the processes which are actually running.
            – kasperd
            Feb 18 at 14:29












          up vote
          -1
          down vote










          up vote
          -1
          down vote









          have you tried htop --help ?



          -p --pid=PID,[,PID,PID...] Show only the given PIDs



          Now all you need is pgrep to get PIDs.



          And as result:



          htop -p "$(pgrep -vfd, 'snapd|firefox|otherstuff')"





          share|improve this answer












          have you tried htop --help ?



          -p --pid=PID,[,PID,PID...] Show only the given PIDs



          Now all you need is pgrep to get PIDs.



          And as result:



          htop -p "$(pgrep -vfd, 'snapd|firefox|otherstuff')"






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 8 at 9:34







          Alexander Makarenko


















          • The list of pids isn't going to remain static. Soon there will be a discrepancy between the argument and the processes which are actually running.
            – kasperd
            Feb 18 at 14:29
















          • The list of pids isn't going to remain static. Soon there will be a discrepancy between the argument and the processes which are actually running.
            – kasperd
            Feb 18 at 14:29















          The list of pids isn't going to remain static. Soon there will be a discrepancy between the argument and the processes which are actually running.
          – kasperd
          Feb 18 at 14:29




          The list of pids isn't going to remain static. Soon there will be a discrepancy between the argument and the processes which are actually running.
          – kasperd
          Feb 18 at 14:29












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f425180%2fhow-to-hide-command-from-htop-ubuntu-16-4%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?