Novell LINUX ENTERPRISE DESKTOP 10 SP2 - DEPLOYMENT GUIDE 08-05-2008 Deployment Manual page 358

Table of Contents

Advertisement

To list all processes with user and command line information, use ps axu:
tux@mercury:~> ps axu
USER
root
root
root
[...]
tux
tux
tux
tux
tux
tux
tux
To check how many sshd processes are running, use the option -p together with the
command pidof, which lists the process IDs of the given processes.
tux@mercury:~> ps -p `pidof sshd`
PID TTY
3524 ?
4813 ?
4817 ?
The process list can be formatted according to your needs. The option -L returns a list
of all keywords. Enter the following command to issue a list of all processes sorted by
memory usage:
tux@mercury:~> ps ax --format pid,rss,cmd --sort rss
PID
2
3
4
5
11
12
472
473
[...]
4028 17556 nautilus --no-default-window --sm-client-id default2
4118 17800 ksnapshot
4114 19172 sound-juicer
4023 25144 gnome-panel --sm-client-id default1
4047 31400 mono-best --debug /usr/lib/beagle/Best.exe --autostarted
3973 31520 mono-beagled --debug /usr/lib/beagle/BeagleDaemon.exe --bg --aut
342
Deployment Guide
PID %CPU %MEM
1
0.0
0.0
2
0.0
0.0
3
0.0
0.0
4047
0.0
6.0 158548 31400 ?
4057
0.0
0.7
9036
4067
0.0
0.1
2204
4072
0.0
1.0
15996
4114
0.0
3.7 130988 19172 ?
4818
0.0
0.3
4192
4959
0.0
0.1
2324
STAT
TIME COMMAND
Ss
0:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
Ss
0:00 sshd: tux [priv]
R
0:00 sshd: tux@pts/0
RSS CMD
0 [ksoftirqd/0]
0 [events/0]
0 [khelper]
0 [kthread]
0 [kblockd/0]
0 [kacpid]
0 [pdflush]
0 [pdflush]
VSZ
RSS TTY
696
272 ?
0
0 ?
0
0 ?
Ssl
3684 ?
Sl
636 ?
S
5160 ?
Ss
SLl
1812 pts/0
Ss
816 pts/0
R+
STAT START
TIME COMMAND
S
12:59
0:01 init [5]
SN
12:59
0:00 [ksoftirqd
S<
12:59
0:00 [events
13:02
0:06 mono-best
13:02
0:00 /opt/gnome
13:02
0:00 /opt/gnome
13:02
0:00 gnome-scre
13:06
0:04 sound-juic
15:59
0:00 -bash
16:17
0:00 ps axu

Advertisement

Table of Contents
loading

This manual is also suitable for:

Linux enterprise desktop 10 sp2

Table of Contents