| UNIX Tutorial | 7. Spying on your neighbors |
|
Commands covered in this section: who, w, last Since UNIX is a multi-user system, many users are able to share the resources of a single machine. Consequently, the activities of one user can affect other users logged into the system at the same time. UNIX provides a variety of tools you can use to observe system usage (tools for measuring the utilization of resources such as disk space, cpu time, and memory will be covered in the intermediate tutorial). In this section, we will briefly cover tools which allow you to see who else is currently logged in (who), what command each user is currently running (w), and the last time a given user logged in (last). Exercise 7.1
Use the who command to see who else is currently
logged in.
Exercise 7.2
Use w see what program each user is running.
The last command can be used to see the last
several logins for a given user.
Exercise 7.3
Check the last three login times for the user rocky.
Omitting the option specifying the number of entries to be
diplayed will cause all logins events for the specified user
in the system logs to be displayed. Omitting the username
will cause login entries for all users to be displayed.
Exercise 7.4
Display the last three login times for all users.
|
|
|
< previous | table of contents | next > |
|