How can I see the processes structured by sessions and process groups?
Clash Royale CLAN TAG#URR8PPP
up vote
-1
down vote
favorite
As far as I know, linux kenerl has sessions and process groups concept, I want to see the sessions and groups, what should I do?
linux shell job-control
add a comment |Â
up vote
-1
down vote
favorite
As far as I know, linux kenerl has sessions and process groups concept, I want to see the sessions and groups, what should I do?
linux shell job-control
add a comment |Â
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
As far as I know, linux kenerl has sessions and process groups concept, I want to see the sessions and groups, what should I do?
linux shell job-control
As far as I know, linux kenerl has sessions and process groups concept, I want to see the sessions and groups, what should I do?
linux shell job-control
linux shell job-control
asked Oct 1 at 14:21
ç¥Âç§Âå¾·éÂÂå Â
285112
285112
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
6
down vote
You can use this command
ps xao pid,ppid,pgid,sid,comm | less
PID PPID PGID SID COMMAND
1 0 1 1 systemd
2 0 0 0 kthreadd
3 2 0 0 ksoftirqd/0
5 2 0 0 kworker/0:0H
6 2 0 0 kworker/u64:0
8 2 0 0 migration/0
. . . .
. . . .
. . . .
. . . .
hit enter to see the next line
PID - Process ID
PPID - Parent Process ID
PGIF - process group ID
SID - Session ID
for more check ps man
If you would like to check specific PID then use this command:
ps xao pid,ppid,pgid,sid,comm | grep <PID>
or
ps p <PID> o pid,ppid,pgid,sid,comm
1
or, for a specific pid without grepping:ps p PID o pid,ppid,pgid,sid,comm
â Jeff Schaller
Oct 1 at 16:52
@ Jeff Schaller very nice!! i will include it in the answer ;-)
â Goro
Oct 1 at 16:54
It doesn't seem to group my processes by session, but just tell me SID and PGID
â ç¥Âç§Âå¾·éÂÂå Â
Oct 3 at 0:38
What do you mean byIt doesn't seem to group my processes by session
?
â Goro
Oct 3 at 0:41
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
6
down vote
You can use this command
ps xao pid,ppid,pgid,sid,comm | less
PID PPID PGID SID COMMAND
1 0 1 1 systemd
2 0 0 0 kthreadd
3 2 0 0 ksoftirqd/0
5 2 0 0 kworker/0:0H
6 2 0 0 kworker/u64:0
8 2 0 0 migration/0
. . . .
. . . .
. . . .
. . . .
hit enter to see the next line
PID - Process ID
PPID - Parent Process ID
PGIF - process group ID
SID - Session ID
for more check ps man
If you would like to check specific PID then use this command:
ps xao pid,ppid,pgid,sid,comm | grep <PID>
or
ps p <PID> o pid,ppid,pgid,sid,comm
1
or, for a specific pid without grepping:ps p PID o pid,ppid,pgid,sid,comm
â Jeff Schaller
Oct 1 at 16:52
@ Jeff Schaller very nice!! i will include it in the answer ;-)
â Goro
Oct 1 at 16:54
It doesn't seem to group my processes by session, but just tell me SID and PGID
â ç¥Âç§Âå¾·éÂÂå Â
Oct 3 at 0:38
What do you mean byIt doesn't seem to group my processes by session
?
â Goro
Oct 3 at 0:41
add a comment |Â
up vote
6
down vote
You can use this command
ps xao pid,ppid,pgid,sid,comm | less
PID PPID PGID SID COMMAND
1 0 1 1 systemd
2 0 0 0 kthreadd
3 2 0 0 ksoftirqd/0
5 2 0 0 kworker/0:0H
6 2 0 0 kworker/u64:0
8 2 0 0 migration/0
. . . .
. . . .
. . . .
. . . .
hit enter to see the next line
PID - Process ID
PPID - Parent Process ID
PGIF - process group ID
SID - Session ID
for more check ps man
If you would like to check specific PID then use this command:
ps xao pid,ppid,pgid,sid,comm | grep <PID>
or
ps p <PID> o pid,ppid,pgid,sid,comm
1
or, for a specific pid without grepping:ps p PID o pid,ppid,pgid,sid,comm
â Jeff Schaller
Oct 1 at 16:52
@ Jeff Schaller very nice!! i will include it in the answer ;-)
â Goro
Oct 1 at 16:54
It doesn't seem to group my processes by session, but just tell me SID and PGID
â ç¥Âç§Âå¾·éÂÂå Â
Oct 3 at 0:38
What do you mean byIt doesn't seem to group my processes by session
?
â Goro
Oct 3 at 0:41
add a comment |Â
up vote
6
down vote
up vote
6
down vote
You can use this command
ps xao pid,ppid,pgid,sid,comm | less
PID PPID PGID SID COMMAND
1 0 1 1 systemd
2 0 0 0 kthreadd
3 2 0 0 ksoftirqd/0
5 2 0 0 kworker/0:0H
6 2 0 0 kworker/u64:0
8 2 0 0 migration/0
. . . .
. . . .
. . . .
. . . .
hit enter to see the next line
PID - Process ID
PPID - Parent Process ID
PGIF - process group ID
SID - Session ID
for more check ps man
If you would like to check specific PID then use this command:
ps xao pid,ppid,pgid,sid,comm | grep <PID>
or
ps p <PID> o pid,ppid,pgid,sid,comm
You can use this command
ps xao pid,ppid,pgid,sid,comm | less
PID PPID PGID SID COMMAND
1 0 1 1 systemd
2 0 0 0 kthreadd
3 2 0 0 ksoftirqd/0
5 2 0 0 kworker/0:0H
6 2 0 0 kworker/u64:0
8 2 0 0 migration/0
. . . .
. . . .
. . . .
. . . .
hit enter to see the next line
PID - Process ID
PPID - Parent Process ID
PGIF - process group ID
SID - Session ID
for more check ps man
If you would like to check specific PID then use this command:
ps xao pid,ppid,pgid,sid,comm | grep <PID>
or
ps p <PID> o pid,ppid,pgid,sid,comm
edited Oct 1 at 16:54
answered Oct 1 at 14:40
Goro
7,02252965
7,02252965
1
or, for a specific pid without grepping:ps p PID o pid,ppid,pgid,sid,comm
â Jeff Schaller
Oct 1 at 16:52
@ Jeff Schaller very nice!! i will include it in the answer ;-)
â Goro
Oct 1 at 16:54
It doesn't seem to group my processes by session, but just tell me SID and PGID
â ç¥Âç§Âå¾·éÂÂå Â
Oct 3 at 0:38
What do you mean byIt doesn't seem to group my processes by session
?
â Goro
Oct 3 at 0:41
add a comment |Â
1
or, for a specific pid without grepping:ps p PID o pid,ppid,pgid,sid,comm
â Jeff Schaller
Oct 1 at 16:52
@ Jeff Schaller very nice!! i will include it in the answer ;-)
â Goro
Oct 1 at 16:54
It doesn't seem to group my processes by session, but just tell me SID and PGID
â ç¥Âç§Âå¾·éÂÂå Â
Oct 3 at 0:38
What do you mean byIt doesn't seem to group my processes by session
?
â Goro
Oct 3 at 0:41
1
1
or, for a specific pid without grepping:
ps p PID o pid,ppid,pgid,sid,comm
â Jeff Schaller
Oct 1 at 16:52
or, for a specific pid without grepping:
ps p PID o pid,ppid,pgid,sid,comm
â Jeff Schaller
Oct 1 at 16:52
@ Jeff Schaller very nice!! i will include it in the answer ;-)
â Goro
Oct 1 at 16:54
@ Jeff Schaller very nice!! i will include it in the answer ;-)
â Goro
Oct 1 at 16:54
It doesn't seem to group my processes by session, but just tell me SID and PGID
â ç¥Âç§Âå¾·éÂÂå Â
Oct 3 at 0:38
It doesn't seem to group my processes by session, but just tell me SID and PGID
â ç¥Âç§Âå¾·éÂÂå Â
Oct 3 at 0:38
What do you mean by
It doesn't seem to group my processes by session
?â Goro
Oct 3 at 0:41
What do you mean by
It doesn't seem to group my processes by session
?â Goro
Oct 3 at 0:41
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%2f472587%2fhow-can-i-see-the-processes-structured-by-sessions-and-process-groups%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