Determine all processes running by root with 2 columns showing: pid,cmd
up vote
4
down vote
favorite
What I did: ps -ax -o pid,cmd,user | grep root
but this shows me on 3 columns showing the root inclusive, how do I eliminate the "root" column?
linux process ps
add a comment |
up vote
4
down vote
favorite
What I did: ps -ax -o pid,cmd,user | grep root
but this shows me on 3 columns showing the root inclusive, how do I eliminate the "root" column?
linux process ps
add a comment |
up vote
4
down vote
favorite
up vote
4
down vote
favorite
What I did: ps -ax -o pid,cmd,user | grep root
but this shows me on 3 columns showing the root inclusive, how do I eliminate the "root" column?
linux process ps
What I did: ps -ax -o pid,cmd,user | grep root
but this shows me on 3 columns showing the root inclusive, how do I eliminate the "root" column?
linux process ps
linux process ps
edited Nov 10 at 13:22
Jeff Schaller
35.9k952119
35.9k952119
asked Nov 10 at 10:44
C. Cristi
1264
1264
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
9
down vote
accepted
You can do this by asking ps
to filter:
ps -u root -o pid,cmd
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
9
down vote
accepted
You can do this by asking ps
to filter:
ps -u root -o pid,cmd
add a comment |
up vote
9
down vote
accepted
You can do this by asking ps
to filter:
ps -u root -o pid,cmd
add a comment |
up vote
9
down vote
accepted
up vote
9
down vote
accepted
You can do this by asking ps
to filter:
ps -u root -o pid,cmd
You can do this by asking ps
to filter:
ps -u root -o pid,cmd
answered Nov 10 at 10:54
Stephen Kitt
156k23343416
156k23343416
add a comment |
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480929%2fdetermine-all-processes-running-by-root-with-2-columns-showing-pid-cmd%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