Provide information (frequently refreshed) about the most CPU-intensive processes currently running. You do not need to include a - before options. See ps for explanations of the field descriptors.
Run in batch mode; don't accept command-line input. Useful for sending output to another command or to a file.
Show command line in display instead of just command name.
Specify delay between refreshes.
Add or remove fields or columns.
Print a help message and exit.
Suppress display of idle and zombie processes. -i is a toggle; top starts with the last remembered setting.
Update display num times, then exit.
Monitor only processes with the specified process ID.
Secure mode. Disable some (dangerous) interactive commands.
Cumulative mode. Print total CPU time of each process, including dead child processes.
Monitor only processes with the specified effective UID or username.
Monitor only processes with the specified UID or username, matching real, effective, saved, and filesystem ids.
Print version information and exit.
Remove restrictions on which tasks are shown. Reverses the effect of an active i or n command.
Update display immediately.
Move the sort field. Use < to move one column left and > to move one column to the right.
Toggle alternate display mode between a single window or multiple windows. See the following section Alternate display mode commands for the commands that work with A.
Toggle between bold and reverse display. Only works with x or y.
Globally toggle bold display.
Toggle display of command name or full command line.
Change delay between refreshes. Prompt for new delay time, which should be in seconds. Suppressed in secure mode.
Prompt to add fields to or remove fields from the display.
Select sort field.
Select another field group and make it current, or change by selecting a number from the following list:
Display help about commands and the status of secure and cumulative modes.
Toggle SMP view. Use I to toggle IRIX/Solaris mode, 1 to toggle single/separate states.
Prompt for process ID to kill, and signal to send (default is 15) to kill it.
Toggle suppression of idle and zombie processes.
Toggle display of load-average and uptime information.
Toggle display of memory information.
Prompt for maximum number of processes to show. If 0 is entered, show as many as will fit on the screen (default).
Sort numerically by process ID.
Prompt to change order of displayed fields.
Sort tasks by CPU usage (default).
Apply renice to a process. Prompt for PID and renice value. Suppressed in secure mode.
Toggle normal or reverse sort.
Toggle cumulative mode. (See the -S option.)
Toggle display of processes and CPUstates lines.
Sort tasks by time/cumulative time.
Prompt for specific user to show.
Write current setup to ~/.toprc. This is the recommended way to write a top configuration file.
Toggle highlighting for sort field.
Toggle highlights for running tests.
Toggle between color and mono display.
Globally change color mappings.
Alternate display mode commands
Rebalance tasks in the current window.
Rebalance tasks in every window.
Show or hide the current window.
Show all invisible windows or hide all visible windows.
Cycle forward through all four windows.
Change the name of the current window or group.
Cycle backward through all four windows.
The first five entries in the following list describe the lines that appear at the top of the top display. The rest are the fields that can be displayed for each task (sizes are in kilobytes). Use the interactive f command to add or remove fields.
Display the time the system has been up, the number of users, and three load averages consisting of the average number of processes ready to run in the last 1, 5, and 15 minutes.
The total number of processes running when the last update was taken, shown as the number of running, sleeping, stopped, or undead tasks.
The percentage of CPU time spent in user mode, in system mode, on tasks with a negative nice value, and idle.
Memory statistics, including total available memory, free memory, memory used, shared memory, and memory used for buffers.
Swapspace statistics, including total, available, used, and cached.
Parent process ID.
Effective user ID of task's owner.
Effective username of task's owner.
Real username of task's owner.
The effective group name of task's owner.
Page fault count.
Data plus stack size.
Resident task size.
Size of swapped-out portion of task.
The total amount of virtual memory used by the task.
Size of pages marked dirty.
Last-used processor, for multiprocessor systems.
Amount of shared memory used.
State of the task. Values are S (sleeping), D (uninterruptible sleep), R (running), Z (zombies), or T (stopped or traced), possibly followed by < (negative nice value), N (positive nice value), or W (swapped out).
Address or name of the kernel function in which the task is currently sleeping.
Total CPU time used by task and any children.
Like TIME, but shows the time down to hundredths of a second.
Share of CPU time since last update, as percentage of total CPU time.
Share of physical memory.
Command line (truncated if too long) if task is in memory, or command name in parentheses if swapped out.