{"id":59116,"date":"2022-04-26T18:01:47","date_gmt":"2022-04-26T10:01:47","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=59116"},"modified":"2023-07-28T19:29:21","modified_gmt":"2023-07-28T11:29:21","slug":"linux-command-top","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/linux-command-top\/","title":{"rendered":"How to Use the Top Command in Linux"},"content":{"rendered":"<p>The <code>top<\/code> command  provides a dynamic, real-time view of the running system. It is used to monitor system processes and resource usage, such as CPU, memory, and swap usage.<\/p>\n<p>General syntax for <code>top<\/code> command:<\/p>\n<pre>\r\n$ top [OPTIONS]\r\n<\/pre>\n<h3>1. List all running processes<\/h3>\n<pre>top<\/pre>\n<p>Use the <code>top<\/code> command to display running tasks, memory, cpu and swap. To close the window, press <span class=\"key\">q<\/span><\/p>\n<p><strong>Example:<\/strong><\/p>\n<p>Runnng the <code>top<\/code> command in a terminal without any options, here\u2019s what you might get.<\/p>\n<pre>top - 15:20:26 up 10 days,  2:30,  1 user,  load average: 0.00, 0.01, 0.05\r\nTasks: 193 total,   1 running, 192 sleeping,   0 stopped,   0 zombie\r\n%Cpu(s):  0.7 us,  0.2 sy,  0.0 ni, 98.9 id,  0.1 wa,  0.0 hi,  0.1 si,  0.0 st\r\nKiB Mem :  8167848 total,  2003084 free,  1652232 used,  4512532 buff\/cache\r\nKiB Swap:  2097148 total,  2097148 free,        0 used.  6171720 avail Mem \r\n\r\n  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND            \r\n 1219 root      20   0  658884  56644  35980 S   6.7  0.7  42:11.77 Xorg               \r\n 2781 user1     20   0  883780  31576  21744 S   6.7  0.4   0:01.01 gnome-terminal-    \r\n    1 root      20   0  225636   9484   6812 S   0.0  0.1   0:07.31 systemd            \r\n    2 root      20   0       0      0      0 S   0.0  0.0   0:00.01 kthreadd           \r\n    4 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker\/0:0H       \r\n    6 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 mm_percpu_wq       \r\n    7 root      20   0       0      0      0 S   0.0  0.0   0:00.31 ksoftirqd\/0        \r\n    8 root      20   0       0      0      0 I   0.0  0.0   0:02.91 rcu_sched          \r\n<\/pre>\n<p>The first line provides a summary of the system: current time, uptime, number of users, and load average.<\/p>\n<p>The second line shows the total number of tasks and their states: running, sleeping, stopped, or zombie.<\/p>\n<p>The third line shows CPU usage details: user processes, system processes, idle processes, etc.<\/p>\n<p>The fourth and fifth lines show memory usage: total, free, used, and buffer\/cache memory.<\/p>\n<p>The rest of the lines list out all the processes running on the system. Each line represents a process with details like <code>PID<\/code>, <code>USER<\/code>, <code>CPU usage<\/code>, <code>Memory usage,<\/code> and the command used to start the process.<\/p>\n<hr>\n<h3>2. Display processes of a specific user<\/h3>\n<pre>top -u [user]<\/pre>\n<p>The <code>-u<\/code> option allows you to display all information about the running processes of a specific user.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p>Displaying running processes of the <code>root<\/code> user.<\/p>\n<pre>top - 12:34:56 up 10 days,  2:30,  2 users,  load average: 0.00, 0.01, 0.05\r\nTasks: 100 total,   1 running,  99 sleeping,   0 stopped,   0 zombie\r\n%Cpu(s):  0.3 us,  0.1 sy,  0.0 ni, 99.5 id,  0.0 wa,  0.0 hi,  0.1 si,  0.0 st\r\nMiB Mem :   7976.1 total,   1694.7 free,   1263.5 used,   5017.8 buff\/cache\r\nMiB Swap:   1024.0 total,   1024.0 free,      0.0 used.   6412.1 avail Mem \r\n\r\n  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND\r\n    1 root      20   0  225492   9484   6812 S   0.0   0.1   0:06.37 systemd\r\n    2 root      20   0       0      0      0 S   0.0   0.0   0:00.01 kthreadd\r\n    3 root      20   0       0      0      0 S   0.0   0.0   0:00.36 ksoftirqd\/0\r\n    5 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker\/0:0H\r\n    7 root      20   0       0      0      0 I   0.0   0.0   0:01.31 rcu_sched\r\n  ...\r\n<\/pre>\n<p>In this example, you can see that the <code>top -u root<\/code> command is showing only the processes owned by the <code>root<\/code> user. The output includes information about each process, such as the process ID (PID), priority (PR), nice value (NI), virtual memory size (VIRT), resident memory size (RES), shared memory size (SHR), CPU usage (%CPU), memory usage (%MEM), and the command used to start the process (COMMAND).<\/p>\n<hr>\n<h3>3. Enabling Batch Mode<\/h3>\n<pre>top -b<\/pre>\n<p>The <code>top -b<\/code> command is used to run top in batch mode. This is particularly useful when you want to redirect the output of <code>top<\/code> to a file or another command. In batch mode, <code>top<\/code> will not accept input and runs until the iterations limit you\u2019ve set, or until killed.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p>In this example, <code>-n 1<\/code> tells <code>top<\/code> to only run once, instead of continuously updating. The output is then redirected into <code>top-output.txt<\/code>.<\/p>\n<p>When you open the <code>top-output.txt<\/code> file, you might see output similar to this:<\/p>\n<pre>top - 18:25:01 up 10 days,  5:45,  1 user,  load average: 0.00, 0.01, 0.05\r\nTasks: 162 total,   1 running, 161 sleeping,   0 stopped,   0 zombie\r\n%Cpu(s):  0.7 us,  0.3 sy,  0.0 ni, 98.9 id,  0.1 wa,  0.0 hi,  0.0 si,  0.0 st\r\nKiB Mem :  8167848 total,  1785084 free,  1583456 used,  4799308 buff\/cache\r\nKiB Swap:  2097148 total,  2097148 free,        0 used.  6250480 avail Mem \r\n\r\n  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND\r\n    1 root      20   0  225492   9484   6812 S   0.0  0.1   0:09.07 systemd\r\n    2 root      20   0       0      0      0 S   0.0  0.0   0:00.01 kthreadd\r\n    3 root      20   0       0      0      0 S   0.0  0.0   0:00.55 ksoftirqd\/0\r\n    5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker\/0:0H\r\n    7 root      20   0       0      0      0 S   0.0  0.0   0:07.28 rcu_sched\r\n<\/pre>\n<hr>\n<h3>4. Start from the same state<\/h3>\n<pre>top -c<\/pre>\n<p><code>top -c<\/code> displays the currently active processes along with additional information, including the full command line used to start each process. This can be useful for seeing exactly what parameters were passed to a process.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p>Here\u2019s an example output of the <code>top -c<\/code> command:<\/p>\n<pre>top - 12:34:56 up 10 days,  2:03,  2 users,  load average: 0.00, 0.01, 0.05\r\nTasks: 100 total,   1 running,  99 sleeping,   0 stopped,   0 zombie\r\n%Cpu(s):  0.3 us,  0.1 sy,  0.0 ni, 99.6 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st\r\nKiB Mem :  2040204 total,   987204 free,   105204 used,   948796 buff\/cache\r\nKiB Swap:  1048572 total,  1048572 free,        0 used.  1830204 avail Mem \r\n\r\n  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND\r\n    1 root      20   0  159444   6604   3904 S   0.0  0.3   0:06.35 \/sbin\/init splash\r\n    2 root      20   0       0      0      0 S   0.0  0.0   0:00.02 [kthreadd]\r\n    3 root      20   0       0      0      0 S   0.0  0.0   0:00.85 [ksoftirqd\/0]\r\n    5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 [kworker\/0:0H]\r\n    7 root      20   0       0      0      0 S   0.0  0.0   0:03.78 [rcu_sched]\r\n  123 root      20   0  278532  37888  26976 S   0.0  1.9   0:03.45 \/usr\/bin\/dockerd -H fd:\/\/\r\n  456 www-data  20   0  161916   6412   2680 S   0.0  0.3   0:00.01 \/usr\/sbin\/apache2 -k start\r\n<\/pre>\n<p>The first few lines provide a summary of the system, including the current time, how long the system has been running, the number of users, the load average, and memory usage.<\/p>\n<p>Each line after that represents a single process, with various pieces of information about each process. This includes the process ID (PID), the user who owns the process, the priority (PR) and nice values (NI), memory usage (VIRT, RES, SHR), current status (S), CPU usage (%CPU), memory usage (%MEM), time the process has been running (TIME+), and the full command line (COMMAND).<\/p>\n<p>The <code>-c<\/code> option shows the full command line used to start each process. For example, for PID 1, the command is <code>\/sbin\/init splash<\/code>. For PID 123, the command is <code>\/usr\/bin\/dockerd -H fd:\/\/<\/code>. This can be useful for seeing exactly what parameters were passed to a process.<\/p>\n<hr>\n<h3>5. Enable Secure Mode<\/h3>\n<pre>top -s<\/pre>\n<p>The <code>-s<\/code> option is used for secure mode operation. In secure mode, some potentially harmful interactive commands are disabled. This is particularly useful when top is run by system administrators in an environment where they want to limit what users can do.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p>Here\u2019s an example of how you might use the <code>-s<\/code> option in this context:<\/p>\n<pre>top -s 5\r\n<\/pre>\n<p>This command will start <code>top<\/code> and refresh the display every 0.5 seconds.<\/p>\n<hr>\n<h3>6. Set delay time of screen updates<\/h3>\n<pre>top -d [seconds]<\/pre>\n<p>The <code>-d<\/code> option is used to specify the delay time between screen updates, or in other words, the refresh rate. By default, <code>top<\/code> updates every 3.0 seconds, but with the <code>-d<\/code> option, you can set this to any desired interval.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p>Specifying the number <code>20<\/code> after the <code>-d<\/code> option to update the output every 20 seconds.<\/p>\n<pre>top -d 20\r\n<\/pre>\n<hr>\n<h3>7. Set the number of iterations<\/h3>\n<pre>top -n [number]<\/pre>\n<p><code>top -n<\/code> updates the <code>top<\/code> command display n times and then exit. This can be useful if you want to take a quick snapshot of the system at regular intervals.<\/p>\n\n<hr>\n<h3 style=\"padding-bottom:10px\">More Linux commands:<\/h3>\n<table>\n<tbody>\n<tr>\n<td width=\"150\">Directory Operations<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-rm-rmdir\/\"><code>rmdir<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-cd\/\"><code>cd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-pwd\/\"><code>pwd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-exa\/\"><code>exa<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ls\/\"><code>ls<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">File Operations<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-cat\/\"><code>cat<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-cp\/\"><code>cp<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-dd\/\"><code>dd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-less\/\"><code>less<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-touch\/\"><code>touch<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ln\/\"><code>ln<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/\"><code>rename<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-more\/\"><code>more<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-head\/\"><code>head<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">File System Operations<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-chown\/\"><code>chown<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-mkfs\/\"><code>mkfs<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-locate\/\"><code>locate<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">Networking<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ping\/\"><code>ping<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-curl\/\"><code>curl<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-wget\/\"><code>wget<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-iptables\/\"><code>iptables<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-mtr\/\"><code>mtr<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">Search and Text Processing<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-find\/\"><code>find<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-grep\/\"><code>grep<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-sed\/\"><code>sed<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-whatis\/\"><code>whatis<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ripgrep\/\"><code>ripgrep<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-fd\/\"><code>fd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-tldr\/\"><code>tldr<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">System Information and Management<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-env\/\"><code>env<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-history\/\"><code>history<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-top\/\"><code>top<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-who\/\"><code>who<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-htop\/\"><code>htop<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-glances\/\"><code>glances<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-lsof\/\"><code>lsof<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">User and Session Management<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-screen\/\"><code>screen<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-su\/\"><code>su<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-sudo\/\"><code>sudo<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-open\/\"><code>open<\/code><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>","protected":false},"excerpt":{"rendered":"<p>The top command provides a dynamic, real-time view of the running system. It is used to monitor system processes and resource usage, such as CPU, memory, and swap usage. General syntax for top command: $ top [OPTIONS] 1. List all running processes top Use the top command to display running tasks, memory, cpu and swap.&hellip;<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3397],"tags":[888,3316],"topic":[],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Use the Top Command in Linux - Hongkiat<\/title>\n<meta name=\"description\" content=\"The top command provides a dynamic, real-time view of the running system. It is used to monitor system processes and resource usage, such as CPU, memory,\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-top\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use the Top Command in Linux\" \/>\n<meta property=\"og:description\" content=\"The top command provides a dynamic, real-time view of the running system. It is used to monitor system processes and resource usage, such as CPU, memory,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/linux-command-top\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-26T10:01:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-28T11:29:21+00:00\" \/>\n<meta name=\"author\" content=\"Hongkiat.com\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hongkiat.com\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-top\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-top\\\/\"},\"author\":{\"name\":\"Hongkiat.com\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/7cc686597d92f9086729e4bcc1577ba3\"},\"headline\":\"How to Use the Top Command in Linux\",\"datePublished\":\"2022-04-26T10:01:47+00:00\",\"dateModified\":\"2023-07-28T11:29:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-top\\\/\"},\"wordCount\":678,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"keywords\":[\"Linux\",\"Linux Commands\"],\"articleSection\":[\"Desktop\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-top\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-top\\\/\",\"name\":\"How to Use the Top Command in Linux - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"datePublished\":\"2022-04-26T10:01:47+00:00\",\"dateModified\":\"2023-07-28T11:29:21+00:00\",\"description\":\"The top command provides a dynamic, real-time view of the running system. It is used to monitor system processes and resource usage, such as CPU, memory,\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-top\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-top\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-top\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Use the Top Command in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/7cc686597d92f9086729e4bcc1577ba3\",\"name\":\"Hongkiat.com\",\"description\":\"This post is published by an HKDC (hongkiat.com) staff. (I.e., intern, staff writer, or editor).\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Use the Top Command in Linux - Hongkiat","description":"The top command provides a dynamic, real-time view of the running system. It is used to monitor system processes and resource usage, such as CPU, memory,","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/linux-command-top\/","og_locale":"en_US","og_type":"article","og_title":"How to Use the Top Command in Linux","og_description":"The top command provides a dynamic, real-time view of the running system. It is used to monitor system processes and resource usage, such as CPU, memory,","og_url":"https:\/\/www.hongkiat.com\/blog\/linux-command-top\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2022-04-26T10:01:47+00:00","article_modified_time":"2023-07-28T11:29:21+00:00","author":"Hongkiat.com","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Hongkiat.com","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-top\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-top\/"},"author":{"name":"Hongkiat.com","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/7cc686597d92f9086729e4bcc1577ba3"},"headline":"How to Use the Top Command in Linux","datePublished":"2022-04-26T10:01:47+00:00","dateModified":"2023-07-28T11:29:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-top\/"},"wordCount":678,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"keywords":["Linux","Linux Commands"],"articleSection":["Desktop"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-top\/","url":"https:\/\/www.hongkiat.com\/blog\/linux-command-top\/","name":"How to Use the Top Command in Linux - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"datePublished":"2022-04-26T10:01:47+00:00","dateModified":"2023-07-28T11:29:21+00:00","description":"The top command provides a dynamic, real-time view of the running system. It is used to monitor system processes and resource usage, such as CPU, memory,","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-top\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/linux-command-top\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-top\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Use the Top Command in Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/7cc686597d92f9086729e4bcc1577ba3","name":"Hongkiat.com","description":"This post is published by an HKDC (hongkiat.com) staff. (I.e., intern, staff writer, or editor).","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/com\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-fnu","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/59116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=59116"}],"version-history":[{"count":4,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/59116\/revisions"}],"predecessor-version":[{"id":68450,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/59116\/revisions\/68450"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=59116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=59116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=59116"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=59116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}