See What Programs You Are Running: ps
The command ps stands for process.
In UNIX, everything you do, every command you type, is considered a "process". This command will list all the jobs you have running in your account, which includes the login shell (-csh) and the program ps itself, any other programs you might be running, and extra logins (see example below).
If you have accidentally left yourself logged in somewhere, you can cancel that login by logging in again (from wherever else) and typing ps at your prompt. It will result in a listing that looks something like this:
PID TT STAT TIME COMMAND
16818 p8 S 0:00 -csh (csh)
16834 p8 R 0:00 ps
15342 q7 IW 0:00 -csh (csh)
The first column is the Process ID Number (PID#), the second is the number of the line you logged into (TTY). The other column in the display that we need to worry about is the last one, COMMAND, which tells you what the names of the programs are that are running. In this example there are two -csh processes, or login shells, running. The one with the lower PID# is the old login. To log yourself out of that extra login, use the kill command below.
Force Quit Programs or Excess Logins: kill
The kill command will force quit any process.
"Kill" will terminate any "processes" you have running. A process is anything you do on stout: when you log in, a "csh" process is created; when you use mail, another process is created; when you edit a file (using an editor like Pico), a process is created, etc. To force quit a process that can't be exited any other way, you can "kill" it. First, find the process id using the "ps" command (above).
Once you know the process id, you can terminate it by typing:
stout.hampshire.edu% kill -9 15342
This command is frequently useful when you have a mail drop box locked message from Eudora. If this happens to you, log into your stout account, and look for a popper process with your login/username.
Cancel a Command: ^C
The command ^C (control and C simultaneiously) will cancel another command or program. ^C works in almost every screen, in PINE and in your home directory (at the prompt). This is especially good for quitting out of a message you really do not want to send, or if you accidentally hit some random key you don't know the function of.
List Everyone Currently Logged In and Last Login and Personal Profile of a Specific User: finger
To finger stout in general, at the prompt type: finger and a list of everyone logged in to stout will be displayed.
If you want to see when the last time a specific person was logged in, or to see if s/he is still logged in, or read her/his .plan, type: finger abc01
You can also finger an alias, or just a first name; however, if you type finger amy it will spit out everyone on stout who has the letters "amy" in his/her fingername or login name or alias. It works better if you use the person's username.
Get Online Help With Other UNIX Commands: man
man used in conjunction with the -k option is another way of finding out about unix commands. man -k [keyword] will print the manual section headings containing [keyword].
© 2013 Hampshire College 893 West Street Amherst, MA 01002 . 413.549.4600