Thursday, August 2, 2007

Commands to control your system

ps

'ps' will give you a list of the processes running on your system.
If you happen to forget what your name is, you can type ps -u. This is the user mode and your user name will appear in the first column. Actually, there's more than that. There will be other columns about memory usage, the time you started running the processes and others.

You can see other users processes if you type ps -au. If you're not using a networked computer, you will see yours and root's processes. If you're into detective work, you can type just ps -a and try to guess who's using the process.

The information that you'll probably be most interested in is the column that shows the "process ID" or "PID". We'll get into why these are so important in the next part of the lesson.

No comments: