If you're using kde, you can press control-escape which should start up
ksysguard (or you can press alt-f2 and type in ksysguard). Gnome has a similar app called
gnome-system-monitor.
If you're comfortable with the terminal, try using
top. top is usually installed by default on most non-minimal distros. top refreshes the list of processes every few seconds, and sorts them by CPU usage. You can press
h to get help on what the various keys do,
H will show threads, or you can press
q to quit back to the prompt.
There's a nicer version of top called
htop, which I only discovered yesterday. It's slightly prettier and has a few extra options. It's top on steroids I guess.
ps can of course be used. Here's my attempt at a useful set of command line options:
Code:
ps axm -o pid,lwp,%cpu,time,command k -%cpu |head -n 20
The command line arguments to ps are a bit of a nightmare because it tries to be compatibile with several different standards and old implementations of ps in different unixes...
The options mean:
- axm : all process (ax), show thread details (m)
- -o pid,lwp,%cpu,time,command : show columns as specified.
- k -%cpu : sort by %cpu column, descending.[/i]
The output of ps is sent to head -n 20, which just passes through the first 20 lines, and junks the rest - just so you can see the top CPU users... you probably won't want to see the whole list of processes on the system.