You can use the ps command to see what processes you’re running.

If you’re not sure what processes you’re running, use the ps command to see what you’re up to:

% ps
PID TT STAT  TIME COMMAND
15047 r5 S     0:00 -csh (tcsh)
15052 r5 S     0:00 xcalc
 7648 s6 S     0:00 -csh (tcsh)
15058 s6 R     0:00 ps

This tells me that I’m running two shell programs and one xcalc window. ps also tells me that I’m running ps.

The caveat is that ps doesn’t know about everything you’re doing. For example, right now the most resource-intensive program I’m running is FrameMaker, but ps didn’t tell me about it. It also didn’t mention the xbiff program I’m running. The reason is that I exited the xterm window I started these programs in, and ps usually only displays processes associated with a terminal.

ps is very system-specific. The options on your system may vary, but on my system, I can use the -x command-line option to find all processes on the system that belong to me:

% ps -x
PID TT STAT  TIME COMMAND
 3323 ?  S     0:17 xlbiff
 7628 ?  I     0:00 in.rshd
 7629 ?  I     0:00 tcsh -c xterm -display opal:0
14869 ?  S     0:10 /usr/local/frame/bin/sunxm.os.sparc/maker
14875 ?  I     0:00 /usr/local/frame/bin/sunxm.os.sparc/
fm_misd -r 8 -w 11 -v 0
14878 ?  I     0:00 /usr/local/frame/bin/sunxm.os.sparc/
fm_flb
15039 ?  I     0:00 in.rshd
15040 ?  I     0:00 tcsh -c xterm -display opal:0
15047 r5 I     0:00 -csh (tcsh)
15052 r5 I     0:00 xcalc
 7648 s6 S     0:00 -csh (tcsh)
15071 s6 R     0:00 ps -x

Get WYNTK: UNIX System Admininistrator now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.