Operating System Information --> Unix (WAM and Glue) --> Unix Utilities --> System Monitoring Commands -->

System Monitoring Commands

These commands will work with most (if not all) distributions of Linux as well as most implementations of Unix. They're the commands that everybody knows. To be able to navigate in Linux, you should become familiar with these.

Monitoring Your System

An important part of system administration (especially with your own system) is being able to know what's going on.

tail

The program tail allows you to follow a file as it is growing. TO follow it use /var/log/messages. Do that by typing tail -f /var/log/messages. Of course, you can use anything else, including the other logs in /var/log/. Another file you may want to keep an eye out for is /var/log/secure.

Another program you may want to look at is head. It monitors the top of the file specified, instead of the bottom.

top

This program shows a lot of stuff that goes on with your system. In the program, you can type:

  1. M for memory usage information
  2. P for CPU information
  3. q to quit

Once you try it, you can see that top shows you the memory usage, uptime, load average, CPU states, and processes.

w

Typing w will tell you who is logged in. This can be helpful if you're the only one who uses your computer and you see someone logged in that's not supposed to be.

Another alternative is who.

Copyright © 1997-1999 Joshua Go (jtg@computers.iwz.com). All rights reserved. Permission to use, distribute, and copy this document is hereby granted. You may modify this document as long as credit to me is given.

How do I:
How are we doing? Comments on this page?
Office of Information Technology
Office of Information Technology Help Desk Web Site University of Maryland Web Site Office of Information Technology Web Site