<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://it-arts.net/index.php?action=history&amp;feed=atom&amp;title=TOP_-_Basic_Usage</id>
	<title>TOP - Basic Usage - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://it-arts.net/index.php?action=history&amp;feed=atom&amp;title=TOP_-_Basic_Usage"/>
	<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=TOP_-_Basic_Usage&amp;action=history"/>
	<updated>2026-05-02T18:43:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://it-arts.net/index.php?title=TOP_-_Basic_Usage&amp;diff=986&amp;oldid=prev</id>
		<title>Admin: Text replacement - &quot;Category:Wiki&quot; to &quot;Category:Wiki

&#039;&#039;&#039;&#039;&#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&#039;&#039;&#039;&#039;&#039;
&quot;</title>
		<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=TOP_-_Basic_Usage&amp;diff=986&amp;oldid=prev"/>
		<updated>2026-01-17T08:11:59Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;&amp;quot; to &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;  &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; &amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:11, 17 January 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Wiki]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Wiki]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&#039;&#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&#039;&#039;&#039;&#039;&#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Command Output ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Command Output ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://it-arts.net/index.php?title=TOP_-_Basic_Usage&amp;diff=494&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;Category:Wiki  == Command Output == When you run `top`, the output is divided into two sections:  * **Summary Area**: Displays overall system information. * **Task Area**: Displays a list of running processes.  === Summary Area === The top part of the display shows summary information about the system, including:  * **uptime**: Time the system has been running. * **user tasks**: Number of user processes. * **system tasks**: Number of system processes. * **load averag...&quot;</title>
		<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=TOP_-_Basic_Usage&amp;diff=494&amp;oldid=prev"/>
		<updated>2025-12-14T07:43:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;  == Command Output == When you run `top`, the output is divided into two sections:  * **Summary Area**: Displays overall system information. * **Task Area**: Displays a list of running processes.  === Summary Area === The top part of the display shows summary information about the system, including:  * **uptime**: Time the system has been running. * **user tasks**: Number of user processes. * **system tasks**: Number of system processes. * **load averag...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Wiki]]&lt;br /&gt;
&lt;br /&gt;
== Command Output ==&lt;br /&gt;
When you run `top`, the output is divided into two sections:&lt;br /&gt;
&lt;br /&gt;
* **Summary Area**: Displays overall system information.&lt;br /&gt;
* **Task Area**: Displays a list of running processes.&lt;br /&gt;
&lt;br /&gt;
=== Summary Area ===&lt;br /&gt;
The top part of the display shows summary information about the system, including:&lt;br /&gt;
&lt;br /&gt;
* **uptime**: Time the system has been running.&lt;br /&gt;
* **user tasks**: Number of user processes.&lt;br /&gt;
* **system tasks**: Number of system processes.&lt;br /&gt;
* **load averages**: System load over the past 1, 5, and 15 minutes.&lt;br /&gt;
* **CPU usage**: Percentage of CPU time spent on user, system, and idle tasks.&lt;br /&gt;
* **Memory usage**: Physical memory usage statistics.&lt;br /&gt;
* **Swap usage**: Swap space usage statistics.&lt;br /&gt;
&lt;br /&gt;
=== Task Area ===&lt;br /&gt;
The task area displays the list of running processes with columns such as:&lt;br /&gt;
&lt;br /&gt;
* **PID**: Process ID.&lt;br /&gt;
* **USER**: User owning the process.&lt;br /&gt;
* **PR**: Process priority.&lt;br /&gt;
* **NI**: Nice value.&lt;br /&gt;
* **VIRT**: Virtual memory used by the process.&lt;br /&gt;
* **RES**: Resident memory (non-swapped physical memory).&lt;br /&gt;
* **SHR**: Shared memory.&lt;br /&gt;
* **S**: Process status (e.g., sleeping, running, stopped).&lt;br /&gt;
* **%CPU**: Percentage of CPU usage by the process.&lt;br /&gt;
* **%MEM**: Percentage of memory usage by the process.&lt;br /&gt;
* **TIME+**: Total CPU time used by the process.&lt;br /&gt;
* **COMMAND**: The command that started the process.&lt;br /&gt;
&lt;br /&gt;
== Interactive Commands ==&lt;br /&gt;
`top` is highly interactive. Some common keyboard commands while `top` is running:&lt;br /&gt;
&lt;br /&gt;
* **h**: Display help for interactive commands.&lt;br /&gt;
* **q**: Quit `top`.&lt;br /&gt;
* **P**: Sort processes by CPU usage.&lt;br /&gt;
* **M**: Sort processes by memory usage.&lt;br /&gt;
* **N**: Sort processes by process ID.&lt;br /&gt;
* **T**: Sort processes by time.&lt;br /&gt;
* **r**: Change the priority (nice value) of a process.&lt;br /&gt;
* **k**: Kill a process (requires PID).&lt;br /&gt;
* **c**: Toggle between showing the command line or just the process name.&lt;br /&gt;
* **1**: Display CPU statistics for each CPU/core (in multi-core systems).&lt;br /&gt;
* **s**: Change the update interval.&lt;br /&gt;
* **u**: Display processes by a specific user.&lt;br /&gt;
&lt;br /&gt;
== Flags and Arguments ==&lt;br /&gt;
`top` accepts various flags and arguments for customized usage. Some useful ones include:&lt;br /&gt;
&lt;br /&gt;
* `-d &amp;lt;seconds&amp;gt;`: Set the delay between screen updates in seconds.&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
  top -d 2  &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* `-u &amp;lt;user&amp;gt;`: Show processes for a specific user.&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
  top -u username  &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* `-n &amp;lt;number&amp;gt;`: Set the number of updates before `top` exits.&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
  top -n 5  &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* `-b`: Start `top` in batch mode (useful for logging).&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
  top -b -n 10 &amp;gt; top_output.txt  &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
* `-p &amp;lt;pid&amp;gt;`: Monitor a specific process by its PID.&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
  top -p 1234&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Customizing the Display ==&lt;br /&gt;
You can customize the appearance and data displayed in `top` using the `fields` option. To interactively adjust the display, press **f** while `top` is running to show available fields. You can toggle different fields on and off.&lt;br /&gt;
&lt;br /&gt;
=== Changing Display Fields ===&lt;br /&gt;
To change which columns appear in `top`, press **f** and select the fields you wish to add or remove. A list of available fields will appear, such as:&lt;br /&gt;
&lt;br /&gt;
* **PID**&lt;br /&gt;
* **USER**&lt;br /&gt;
* **PRIORITY**&lt;br /&gt;
* **TIME+**&lt;br /&gt;
* **%MEM**&lt;br /&gt;
* **%CPU**&lt;br /&gt;
* **COMMAND**&lt;br /&gt;
&lt;br /&gt;
=== Changing Update Interval ===&lt;br /&gt;
To modify the screen update interval, press **s** and specify the delay (in seconds).&lt;br /&gt;
&lt;br /&gt;
== Batch Mode ==&lt;br /&gt;
In batch mode, `top` outputs information to the terminal or a file without the interactive user interface. This is useful for logging or monitoring processes over time.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
top -b -n 1 &amp;gt; top_output.txt&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above command will output the current `top` data to a file named `top_output.txt` after one update cycle.&lt;br /&gt;
&lt;br /&gt;
== Example Usage ==&lt;br /&gt;
* Show top processes, sorted by CPU usage, with 1-second updates:&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
top -d 1 -o %CPU&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Display top processes for a specific user:&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
top -u john&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Start `top` in batch mode for 5 iterations:&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
top -b -n 5&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Display information for a single process:&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
top -p 1234&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Advanced Options ==&lt;br /&gt;
There are several advanced options that allow further customization and interaction with `top`:&lt;br /&gt;
&lt;br /&gt;
* `-I`: Display only idle processes.&lt;br /&gt;
* `-i`: Display only active processes.&lt;br /&gt;
* `-H`: Show threads for each process.&lt;br /&gt;
* `-c`: Display full command lines instead of just the command names.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>