Top Command Alternative to View Processes

By | 2007-04-05

Many Unix and Linux-style operating systems come with the ”top” command that, when entered, display a detailed view of every running process on the system. This command updates in real-time, so as processes start, stop, or request more memory, this information is reflected in the display.

Windows XP”s Task Manager shows this information in a GUI format. Just press CONTROL-ALT-DELETE. If the Task Manager does not automatically appear, select the “Task Manager” button.

To view this information in the DOS prompt, you need to install the Windows 2003 Resource Kit (refer to tip Unix Style Tail Command for instructions). This will provide the command ”pmon” that provides similar functionality. After installation of the Resource Kit, enter the following command at the DOS prompt:

C:\>pmon

You will see a display of the currently running processes, their names, how long they have run, their thread count, and more. At the top of the pmon display is a cumulative total of memory used, memory available page faults, and more. Use the up and down cursor keys to scroll through the display, and press CONTROL-C to exit.

Of course, if you are used to the top command, you can always create a quick batch file. Enter the following at the DOS prompt:

C:\>cd \windows
C:\>echo @pmon > top.bat

Now, if you enter ”top” at the Windows XP command prompt, the process monitor (pmon) command will start.

Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.