How to hide command from htop ubuntu 16.4?
Clash Royale CLAN TAG#URR8PPP
up vote
-1
down vote
favorite
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
linux ubuntu
migrated from serverfault.com Feb 19 at 13:41
This question came from our site for system and network administrators.
add a comment |Â
up vote
-1
down vote
favorite
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
linux ubuntu
migrated from serverfault.com Feb 19 at 13:41
This question came from our site for system and network administrators.
add a comment |Â
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
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
linux ubuntu
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
linux ubuntu
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.
add a comment |Â
add a comment |Â
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')"
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
add a comment |Â
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')"
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
add a comment |Â
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')"
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
add a comment |Â
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')"
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')"
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
add a comment |Â
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
add a comment |Â
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
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
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
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
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