ps -ef | grep yourUserId
prints the status of all your processes on a machine. The following is an example:
% ps -ef | grep ksartipi
UID PID PPID C STIME TTY TIME CMD
ksartipi 9002 9000 0 11:10:43 pts/13 0:01 -tcsh
ksartipi 11670 11666 0 Mar 22 pts/9 0:00 -tcsh
ksartipi 7051 1 1 09:45:30 ? 0:34 emacs-20.2es
ksartipi 9092 9002 0 11:11:56 pts/13 0:00 grep ksartipi
You will see several lines, each relating to a different process. You should locate the shell process of thecrashed session. This is done by looking at the process ids (PID) of different processes and recognizing yourcurrent shell process and your crashed shell process. Your current shell process has the PID number close tothe other programs that you run in your new session. In the above example, the first line belongs to thecurrently created shell process since its PID is close to the PID of the "grep ksartipi" command (two PIDs 9002and 9092), as opposed to the PID of the shell process in the second line (11670).
Now, you can kill the crashed shell process by the command: "kill -9 11670" at the Unix prompt and releasethe crashed terminal.