Watch Terminal Activity
Updated: 07/14/2005
General Information
Have you ever had a user login to your box and then ask you for help? Or have you ever been curious as to what your users are doing on your system? Thewatch(8) utility will let you snoop another tty, allowing you to see what your other users are doing and even interact with them. It's a must-have utility for every network administrator.Requirements
Installation
For the 5.x branch, there is no installation needed. Everything required for watch is already installed.|
# nano -w /usr/src/sys/i386/conf/MYKERNEL ***output omitted*** pseudo-device snp 4 ***output omitted*** |
Usage
You need to know which tty you wish to watch, so if you don't know it you can find out.|
# who jon ttyp0 Oct 19 12:10 (192.168.0.20) steve ttyp1 Oct 19 12:15 (192.168.0.23) |
Note: You must aquire root priveleges first as watch(8) can only be used as root.
| # | watch [options] tty |
| # | watch ttyp1 |
| # | watch -W ttyp1 |
|
<control-G> Exit watch. <control-W> Clear screen. <control-X> Change attached tty, unless this feature is disabled, in which case control-X is passed to the terminal as with other control characters. |
Author: Jon LaBass
jon at bsdguides dot org