next up previous
Next: Killing Jobs and Processes Up: USING UNIX Previous: Changing the Permissions on

Getting Information (whoami, pwd, finger, setenv, jobs, ps, history)

The command pwd prints the name of your current (or working) directory on your screen. Typing history will give a list of your most recent commands. You can repeat a command using ! For example, !12 repeats the command that is numbered 12 in your history list.

Typing whoami will tell you whose account you are currently using. The command finger will get you information on all users currently logged onto your system. You can also find out about a single person. For example, finger smith will give you information about the user smith. Finger will make a guess for you, so you can use it to find out email addresses. Thus, finger smyth will probably give you information on smith whose name you had forgotten how to spell. You can also use finger to ask about people elsewhere on internet using their email address as in finger This doesn't work 100% of the time.

A list of your environmental variables can be obtained via setenv. The commands ps and jobs tell you the current processes and jobs that are owned by you. To get all processes try ps -elf.