Output system processes via ps
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
add a comment |
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
1
According toman 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. TheF
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
add a comment |
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
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
command-line system process
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 toman 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. TheF
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
add a comment |
1
According toman 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. TheF
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
add a comment |
3 Answers
3
active
oldest
votes
Try ps aux
see if that works for you. Please let me know if you need further help on this.
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
add a comment |
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
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
add a comment |
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
add a comment |
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
});
}
});
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%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
Try ps aux
see if that works for you. Please let me know if you need further help on this.
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
add a comment |
Try ps aux
see if that works for you. Please let me know if you need further help on this.
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
add a comment |
Try ps aux
see if that works for you. Please let me know if you need further help on this.
Try ps aux
see if that works for you. Please let me know if you need further help on this.
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
add a comment |
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
add a comment |
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Jun 1 '13 at 18:36
TomasTomas
213
213
add a comment |
add a comment |
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.
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%2faskubuntu.com%2fquestions%2f302909%2foutput-system-processes-via-ps%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
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