{"id":5323,"date":"2023-02-06T04:54:11","date_gmt":"2023-02-06T04:54:11","guid":{"rendered":"https:\/\/linuxsimply.com\/?p=5323"},"modified":"2023-08-30T07:27:55","modified_gmt":"2023-08-30T07:27:55","slug":"vmstat-command-in-linux","status":"publish","type":"post","link":"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/","title":{"rendered":"The \u201cvmstat\u201d Command in Linux [6 Practical Examples]"},"content":{"rendered":"<p style=\"text-align: justify;\">The <strong>vmstat<\/strong>\u00a0command in <strong>Linux<\/strong>\u00a0is an essential tool for monitoring and managing the performance of the <strong>system<\/strong>. Whether you are a <strong>system<\/strong>\u00a0administrator or a developer, the <strong>vmstat<\/strong>\u00a0command provides valuable information that can help you optimize <strong>system<\/strong>\u00a0performance, identify performance issues, and troubleshoot problems. Moreover, In this article, I will describe all the<strong>\u00a0<\/strong>features and uses of the<strong>\u00a0vmstat<\/strong>\u00a0command in<strong>\u00a0Linux<\/strong>\u00a0with multiple examples.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#A_Description\" >A.\u00a0Description<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#B_Syntax\" >B.\u00a0Syntax<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#C_Options\" >C.\u00a0Options<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#Practical_Examples_of_the_%E2%80%9Cvmstat%E2%80%9D_Command_in_Linux\" >Practical Examples of the \u201cvmstat\u201d Command in Linux<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#Example_1_Display_System_Statistics_With_%E2%80%9Cvmstat%E2%80%9D_Command_in_Linux\" >Example 1: Display System Statistics With \u201cvmstat\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#Example_2_Display_the_Amount_of_Active_and_Inactive_Memory\" >Example 2: Display the Amount of Active and Inactive Memory<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#Example_3_Display_Memory_and_Scheduling_Statistics_Using_the_%E2%80%9Cvmstat%E2%80%9D_Command_in_Linux\" >Example 3: Display Memory and Scheduling Statistics Using the \u201cvmstat\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#Example_4_Display_All_Disk_Statistics_Using_the_%E2%80%9Cvmstat%E2%80%9D_Command_in_Linux\" >Example 4: Display All Disk Statistics Using the \u201cvmstat\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#Example_5_Repeatedly_Display_the_Memory_Status_in_Megabytes\" >Example 5: Repeatedly Display the Memory Status in Megabytes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#Example_6_Display_Timestamp_Information_of_Each_Report\" >Example 6: Display Timestamp Information of Each Report<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"A_Description\"><\/span>A.\u00a0Description<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>vmstat<\/strong>\u00a0command in <strong>Linux<\/strong>\u00a0is a powerful tool that provides detailed information about <strong>system<\/strong>\u00a0performance, including memory usage, CPU utilization, and <strong>I<\/strong>nput\/<strong>O<\/strong>utput (I\/O) statistics. This command provides real-time information about various aspects of the <strong>system<\/strong>, which makes it a valuable tool for <strong>system<\/strong>\u00a0administrators and developers. With the <strong>vmstat<\/strong>\u00a0command, you can easily identify performance bottlenecks, monitor resource utilization, and troubleshoot various performance-related issues on your <strong>Linux<\/strong>\u00a0<strong>system<\/strong><\/p>\n<h3><span class=\"ez-toc-section\" id=\"B_Syntax\"><\/span>B.\u00a0Syntax<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The syntax of the<strong>\u00a0vmstat<\/strong>\u00a0command in <strong>Linux<\/strong>\u00a0is simple, as shown below.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">vmstat [OPTION]... [DELAY [COUNT]]<\/code><\/pre>\n<p style=\"text-align: justify;\"><div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\">\n<strong>Note: <\/strong>In the syntax above, the <strong>OPTION<\/strong>\u00a0enclosed by the square brackets means it is not mandatory and <strong>three dots<\/strong>\u00a0after the square brackets mean multiple <strong>OPTIONS <\/strong>can be used simultaneously after the <strong>vmstat <\/strong>command. <strong>DELAY<\/strong>\u00a0refers to the delay between updates in seconds. And the <strong>COUNT<\/strong>\u00a0refers to the number of updates.<br \/>\n<\/div><\/div>\n<h3><span class=\"ez-toc-section\" id=\"C_Options\"><\/span>C.\u00a0Options<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>vmstat<\/strong>\u00a0command has multiple <strong>options<\/strong>\u00a0available. Here, I have listed a few of them. However, you can learn more about the <strong>vmstat <\/strong>command, its <strong>options<\/strong>\u00a0and their uses by checking the <strong>man<\/strong>\u00a0page.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">man vmstat<\/code><\/pre>\n<p><span style=\"color: #800080;\"><strong>Useful Options<\/strong><\/span><\/p>\n<div class=\"su-list\" style=\"margin-left:20px\">\n<ul>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-a, &#8211;active: <\/strong>Displays active and inactive memory.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-f, &#8211;forks: <\/strong>Displays the number of forks since boot.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-m, &#8211;slabs: <\/strong>Displays slab info.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-s, &#8211;stats: <\/strong>Displays a table of various event counters and memory statistics.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-d, &#8211;disk: <\/strong>Displays statistics on disk activities.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-D, &#8211;disk-sum: <\/strong>Displays statistics on paging activities.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-S, &#8211;unit <\/strong><strong><em>character<\/em><\/strong><strong>: <\/strong>Displays information in MB or KB.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-t, &#8211;timestamp: <\/strong>Displays a timestamp with each report.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-h, &#8211;help: <\/strong>Displays the help page<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-V, &#8211;version: <\/strong>Displays version information.<\/li>\n<\/ul>\n<\/div>\n<p style=\"text-align: justify;\"><div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\">\n<strong>Note: <\/strong>Commands and their <strong>options<\/strong>\u00a0are <strong>case-sensitive <\/strong>in <strong>Linux<\/strong>. So, be careful while using them.<br \/>\n<\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Practical_Examples_of_the_%E2%80%9Cvmstat%E2%80%9D_Command_in_Linux\"><\/span>Practical Examples of the \u201cvmstat\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">In <strong>Linux<\/strong>, the <strong>vmstat<\/strong>\u00a0command is a helpful tool to monitor <strong>system<\/strong>\u00a0performance and resource usage. In the section below, I will show you some of the most useful applications for the <strong>vmstat<\/strong>\u00a0command in <strong>Linux<\/strong>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_1_Display_System_Statistics_With_%E2%80%9Cvmstat%E2%80%9D_Command_in_Linux\"><\/span>Example 1: Display System Statistics With \u201cvmstat\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can display the <strong>system<\/strong>\u00a0statistics by simply running the <strong>vmstat<\/strong>\u00a0command in <strong>Linux<\/strong>. Here, I will show you the <strong>system<\/strong>\u00a0statistics of my <strong>Linux<\/strong>\u00a0<strong>system<\/strong>. You can do the same for your <strong>system<\/strong>\u00a0by following the steps mentioned below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>\u278a First, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Then, execute the following command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">vmstat<\/code><\/pre>\n<p>\u278c Finally, press the <strong>ENTER<\/strong>\u00a0key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>In the following image, you can see that I have displayed<strong>\u00a0<\/strong>the<strong>\u00a0system statistics<\/strong>\u00a0of my <strong>system<\/strong>.<img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-5324\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-1.png\" alt=\"Showing the\u00a0system statistics\u00a0of my system using the vmstat command in linux.\" width=\"825\" height=\"107\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-1.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-1-300x39.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-1-763x99.png 763w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_2_Display_the_Amount_of_Active_and_Inactive_Memory\"><\/span>Example 2: Display the Amount of Active and Inactive Memory<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">Monitoring the memory usage of your <strong>system<\/strong>\u00a0is important to ensure its smooth functioning and avoid performance issues. In <strong>Linux<\/strong>, you can display the amount of <strong>active<\/strong>\u00a0and <strong>inactive<\/strong>\u00a0memory using the <strong>-a<\/strong>\u00a0<strong>option<\/strong>\u00a0with the <strong>vmstat<\/strong>\u00a0command. In this article, I will guide you through the process of displaying the amount of <strong>active<\/strong>\u00a0and<strong>\u00a0inactive<\/strong>\u00a0memory in <strong>Linux<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Then, execute the following command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">vmstat -a<\/code><\/pre>\n<p>\u278c Then, press the <strong>ENTER<\/strong>\u00a0key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>In the following image, you can see that I have displayed<strong>\u00a0<\/strong>the<strong>\u00a0<\/strong>amount of <strong>active<\/strong>\u00a0and <strong>inactivate<\/strong> memory in kilobytes (<strong>kb<\/strong>).<img decoding=\"async\" class=\"aligncenter size-full wp-image-5325\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-2.png\" alt=\"The\u00a0amount of active\u00a0and inactivate\u00a0memory has been displayed in kilobytes (kb) using vmstat command in linux.\" width=\"825\" height=\"106\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-2.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-2-300x39.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-2-763x98.png 763w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/service-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cservice\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/sestatus-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201csestatus\u201d Command in Linux [4 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/shutdown-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cshutdown\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/finger-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cfinger\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_3_Display_Memory_and_Scheduling_Statistics_Using_the_%E2%80%9Cvmstat%E2%80%9D_Command_in_Linux\"><\/span>Example 3: Display Memory and Scheduling Statistics Using the \u201cvmstat\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">Memory and scheduling statistics are key indicators of a computer <strong>system<\/strong>&#8216;s performance. These statistics provide information about a <strong>system<\/strong>&#8216;s memory usage and task-scheduling capabilities. Here, I will show you the memory and scheduling statistics of my <strong>system,<\/strong> which can be achieved by following the mentioned steps.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>\u278a First, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Next, copy the below command in the command prompt.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">vmstat -s<\/code><\/pre>\n<p>\u278c Finally, tap the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>You can see in the image below, I have displayed the <strong>memory <\/strong>and scheduling status of my <strong>system<\/strong>.<img decoding=\"async\" class=\"aligncenter size-full wp-image-5326\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-3.png\" alt=\"Showing the memory and scheduling status of my system.\" width=\"554\" height=\"732\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-3.png 554w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-3-227x300.png 227w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-3-767x1014.png 767w\" sizes=\"(max-width: 554px) 100vw, 554px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_4_Display_All_Disk_Statistics_Using_the_%E2%80%9Cvmstat%E2%80%9D_Command_in_Linux\"><\/span>Example 4: Display All Disk Statistics Using the \u201cvmstat\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>vmstat<\/strong>\u00a0command with the <strong>-d<\/strong>\u00a0<strong>option<\/strong>\u00a0displays disk statistics in <strong>Linux<\/strong>. The <strong>-d<\/strong>\u00a0<strong>option<\/strong> shows the number of reads and writes, in blocks per second, that have been issued to the disk. You can get the statistics of all disks by following the steps given below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Then, type the following command into the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">vmstat -d<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong>\u00a0button.<\/p>\n<p><span style=\"color: #0000ff;\"><strong><span style=\"color: #800080;\">Output &gt;<\/span> <\/strong><\/span><\/p>\n<p>In the image below, you can see the <strong>statistics <\/strong>of all of my <strong>Linux <\/strong>machine\u2019s disks.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5327\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-4.png\" alt=\"Showing the statistics of all of my Linux machine\u2019s disks using vmstat command in linux.\" width=\"825\" height=\"466\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-4.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-4-300x169.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-4-767x433.png 767w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/free-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cfree\u201d Command in Linux [8 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/getent-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cgetent\u201d Command in Linux [11 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/firewall-cmd-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cfirewall-cmd\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/uname-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cuname\u201d Command in Linux [11 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_5_Repeatedly_Display_the_Memory_Status_in_Megabytes\"><\/span>Example 5: Repeatedly Display the Memory Status in Megabytes<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">To display the memory status in megabytes multiple times, you can use the <strong>vmstat<\/strong>\u00a0command along with the <strong>option<\/strong>\u00a0<strong>-S <\/strong>&amp; <strong>M <\/strong>and two arguments, i.e., <strong>delay<\/strong>\u00a0and <strong>count<\/strong>. So the syntax will be as below.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">vmstat -S M delay count<\/code><\/pre>\n<p style=\"text-align: justify;\">In this example, I&#8217;ll show the memory status in megabytes <strong>three<\/strong>\u00a0times over the course of a <strong>ten-second<\/strong>\u00a0period. You can do the same by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>\u278a At first, Launch the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Then, execute the following command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">vmstat -S M 10 3<\/code><\/pre>\n<p>\u278c Then, press the <strong>ENTER<\/strong>\u00a0key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>In the following image, you can see that I have displayed<strong>\u00a0<\/strong>the<strong>\u00a0<\/strong>memory status three times in megabyte units.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5328\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-5.png\" alt=\"The\u00a0memory status has been displayed three times in megabyte units.\" width=\"825\" height=\"154\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-5.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-5-300x56.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-5-766x143.png 766w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_6_Display_Timestamp_Information_of_Each_Report\"><\/span>Example 6: Display Timestamp Information of Each Report<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">To display timestamp information for each report in the output of the <strong>vmstat<\/strong>\u00a0command in <strong>Linux<\/strong>, the<strong>\u00a0-t <\/strong>or<strong>\u00a0&#8211;timestamp<\/strong>\u00a0<strong>option<\/strong>\u00a0can be utilized. This <strong>option<\/strong>\u00a0adds the current date and time to each iteration of the output, providing a clear indication of when the statistics were collected. In this example, I will show you the <strong>timestamp<\/strong>\u00a0information of a report in the output of the <strong>vmstat<\/strong>\u00a0command, which can be achieved by following the steps below.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>\u278a Open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b<strong>\u00a0<\/strong>Next, run any one of the following commands.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">vmstat -t<\/code><\/pre>\n<p><strong><span style=\"color: #800080;\">Alternatively,<\/span><\/strong><\/p>\n<pre><code class=\"language-bash\" data-line=\"\">vmstat --timestamp<\/code><\/pre>\n<p>\u278c Press the <strong>ENTER<\/strong>\u00a0key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<br \/>\n<\/strong><\/span><\/p>\n<p>The output will show the current status of the <strong>system<\/strong>&#8216;s <strong>memory, swap, block IO, traps, <\/strong>and<strong>\u00a0CPU<\/strong> activity, along with the date and time of the update.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5329\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-6.png\" alt=\"Showing the current status of the system's memory, swap, block IO, traps, and\u00a0CPU activity, along with the date and time of the update.\" width=\"825\" height=\"90\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-6.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-6-300x33.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux-6-761x83.png 761w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">The <strong>vmstat<\/strong>\u00a0is a versatile performance monitoring tool in <strong>Linux<\/strong>\u00a0systems. Regardless of your level of experience, <strong>vmstat<\/strong> will provide detailed information about your <strong>system<\/strong>&#8216;s performance. In addition, <strong>vmstat<\/strong>\u00a0can help you diagnose and resolve performance problems by giving you a detailed picture of various system resources and utilization. By understanding the basics of <strong>vmstat<\/strong>, you can take full advantage of this tool, and effectively monitor and manage the performance of your <strong>Linux<\/strong>\u00a0system.<\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/dmesg-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cdmesg\u201d Command in Linux [7+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/install-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cinstall\u201d Command in Linux [6+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/reboot-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201creboot\u201d Command in Linux [3 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/\" target=\"_blank\" rel=\"noopener\">The &#8220;top&#8221; Command in Linux [8 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/top-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The &#8220;htop&#8221; Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/enable-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cenable\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;5323&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;The \u201cvmstat\u201d Command in Linux [6 Practical Examples]&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">Rate this post<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>The vmstat\u00a0command in Linux\u00a0is an essential tool for monitoring and managing the performance of the system. Whether you are a &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"The \u201cvmstat\u201d Command in Linux [6 Practical Examples]\" class=\"read-more button\" href=\"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#more-5323\" aria-label=\"Read more about The \u201cvmstat\u201d Command in Linux [6 Practical Examples]\">Read more<\/a><\/p>\n","protected":false},"author":314892,"featured_media":5330,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[51],"class_list":["post-5323","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-commands","tag-system-commands","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The \u201cvmstat\u201d Command in Linux [6 Practical Examples]<\/title>\n<meta name=\"description\" content=\"The vmstat command in Linux displays virtual memory statistics and process information, including memory usage, CPU utilization, etc.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The \u201cvmstat\u201d Command in Linux [6 Practical Examples]\" \/>\n<meta property=\"og:description\" content=\"The vmstat command in Linux displays virtual memory statistics and process information, including memory usage, CPU utilization, etc.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxSimply\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-06T04:54:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-30T07:27:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"S. M. Amdadul Islam\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"S. M. Amdadul Islam\" \/>\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:\\\/\\\/linuxsimply.com\\\/vmstat-command-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/vmstat-command-in-linux\\\/\"},\"author\":{\"name\":\"S. M. Amdadul Islam\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/d0ccfa2e6c3bddb8ae34898f9d45b4ee\"},\"headline\":\"The \u201cvmstat\u201d Command in Linux [6 Practical Examples]\",\"datePublished\":\"2023-02-06T04:54:11+00:00\",\"dateModified\":\"2023-08-30T07:27:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/vmstat-command-in-linux\\\/\"},\"wordCount\":1250,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/vmstat-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/vmstat-command-in-linux.png\",\"keywords\":[\"system commands\"],\"articleSection\":[\"Linux Commands\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/vmstat-command-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/vmstat-command-in-linux\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/vmstat-command-in-linux\\\/\",\"name\":\"The \u201cvmstat\u201d Command in Linux [6 Practical Examples]\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/vmstat-command-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/vmstat-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/vmstat-command-in-linux.png\",\"datePublished\":\"2023-02-06T04:54:11+00:00\",\"dateModified\":\"2023-08-30T07:27:55+00:00\",\"description\":\"The vmstat command in Linux displays virtual memory statistics and process information, including memory usage, CPU utilization, etc.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/vmstat-command-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/vmstat-command-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/vmstat-command-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/vmstat-command-in-linux.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/vmstat-command-in-linux.png\",\"width\":400,\"height\":400,\"caption\":\"vmstat command in linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/vmstat-command-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxsimply.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The \u201cvmstat\u201d Command in Linux [6 Practical Examples]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"name\":\"LinuxSimply\",\"description\":\"All About Linux\",\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxsimply.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\",\"name\":\"LinuxSimply\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"width\":355,\"height\":48,\"caption\":\"LinuxSimply\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/d0ccfa2e6c3bddb8ae34898f9d45b4ee\",\"name\":\"S. M. Amdadul Islam\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/S.-M.-Amdadul-Islam-II-96x96.png\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/S.-M.-Amdadul-Islam-II-96x96.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/S.-M.-Amdadul-Islam-II-96x96.png\",\"caption\":\"S. M. Amdadul Islam\"},\"description\":\"Hello everyone. I am S. M. Amdadul Islam, currently working as a Linux Content Developer Executive at SOFTEKO. I am a Naval Architecture and Marine Engineering (NAME) graduate from the Bangladesh University of Engineering and Technology. In addition to my regular work, I enjoy watching Youtube, discovering new things, gossiping with friends, visiting new places, and taking photos of landscapes. Read Full Bio\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/amdadul-islam\"],\"url\":\"https:\\\/\\\/linuxsimply.com\\\/author\\\/amdad\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The \u201cvmstat\u201d Command in Linux [6 Practical Examples]","description":"The vmstat command in Linux displays virtual memory statistics and process information, including memory usage, CPU utilization, etc.","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:\/\/linuxsimply.com\/vmstat-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"The \u201cvmstat\u201d Command in Linux [6 Practical Examples]","og_description":"The vmstat command in Linux displays virtual memory statistics and process information, including memory usage, CPU utilization, etc.","og_url":"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/","og_site_name":"LinuxSimply","article_published_time":"2023-02-06T04:54:11+00:00","article_modified_time":"2023-08-30T07:27:55+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux.png","type":"image\/png"}],"author":"S. M. Amdadul Islam","twitter_card":"summary_large_image","twitter_misc":{"Written by":"S. M. Amdadul Islam","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/"},"author":{"name":"S. M. Amdadul Islam","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/d0ccfa2e6c3bddb8ae34898f9d45b4ee"},"headline":"The \u201cvmstat\u201d Command in Linux [6 Practical Examples]","datePublished":"2023-02-06T04:54:11+00:00","dateModified":"2023-08-30T07:27:55+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/"},"wordCount":1250,"commentCount":0,"publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"image":{"@id":"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux.png","keywords":["system commands"],"articleSection":["Linux Commands"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/","url":"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/","name":"The \u201cvmstat\u201d Command in Linux [6 Practical Examples]","isPartOf":{"@id":"https:\/\/linuxsimply.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux.png","datePublished":"2023-02-06T04:54:11+00:00","dateModified":"2023-08-30T07:27:55+00:00","description":"The vmstat command in Linux displays virtual memory statistics and process information, including memory usage, CPU utilization, etc.","breadcrumb":{"@id":"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxsimply.com\/vmstat-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#primaryimage","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/vmstat-command-in-linux.png","width":400,"height":400,"caption":"vmstat command in linux"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxsimply.com\/vmstat-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxsimply.com\/"},{"@type":"ListItem","position":2,"name":"The \u201cvmstat\u201d Command in Linux [6 Practical Examples]"}]},{"@type":"WebSite","@id":"https:\/\/linuxsimply.com\/#website","url":"https:\/\/linuxsimply.com\/","name":"LinuxSimply","description":"All About Linux","publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxsimply.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/linuxsimply.com\/#organization","name":"LinuxSimply","url":"https:\/\/linuxsimply.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","width":355,"height":48,"caption":"LinuxSimply"},"image":{"@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/d0ccfa2e6c3bddb8ae34898f9d45b4ee","name":"S. M. Amdadul Islam","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/S.-M.-Amdadul-Islam-II-96x96.png","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/S.-M.-Amdadul-Islam-II-96x96.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/S.-M.-Amdadul-Islam-II-96x96.png","caption":"S. M. Amdadul Islam"},"description":"Hello everyone. I am S. M. Amdadul Islam, currently working as a Linux Content Developer Executive at SOFTEKO. I am a Naval Architecture and Marine Engineering (NAME) graduate from the Bangladesh University of Engineering and Technology. In addition to my regular work, I enjoy watching Youtube, discovering new things, gossiping with friends, visiting new places, and taking photos of landscapes. Read Full Bio","sameAs":["https:\/\/www.linkedin.com\/in\/amdadul-islam"],"url":"https:\/\/linuxsimply.com\/author\/amdad\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/5323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/users\/314892"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/comments?post=5323"}],"version-history":[{"count":0,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/5323\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media\/5330"}],"wp:attachment":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media?parent=5323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/categories?post=5323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/tags?post=5323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}