{"id":3816,"date":"2025-12-11T14:58:52","date_gmt":"2025-12-11T14:58:52","guid":{"rendered":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?p=3816"},"modified":"2025-12-19T10:09:00","modified_gmt":"2025-12-19T10:09:00","slug":"how-to-check-cpu-usage-in-linux","status":"publish","type":"post","link":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/483\/check-cpu-usage-in-linux.html","title":{"rendered":"How to Check CPU Usage in Linux?"},"content":{"rendered":"\n<p>Ever felt like your Linux server is running slower than usual, or some applications are taking forever to respond?<\/p>\n\n\n\n<p>Before blaming your hardware, it\u2019s a good idea to check what\u2019s really going on under the hood.<\/p>\n\n\n\n<p>Your CPU, the brain of your computer or server, might be juggling too many tasks at once. Monitoring CPU usage in Linux isn\u2019t just for tech experts; it\u2019s for anyone who wants a smooth and responsive server.<\/p>\n\n\n\n<p>In this guide, we will explore simple, practical ways to see what\u2019s eating up your CPU, identify which processes are heavy, and keep your server running like a well-oiled machine.<\/p>\n\n\n\n<p>No complicated jargon, just easy-to-follow steps that anyone can use!<\/p>\n\n\n\n<p><hr>\n<p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/481\/check-os-version-in-linux.html\"><strong>How to Check OS Version in Linux\u200b?<\/strong><\/a><\/p><hr><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Understanding CPU Usage<\/strong><\/h2>\n\n\n\n<p>Before we dive into commands, let\u2019s quickly understand what CPU usage means. CPU (Central Processing Unit) usage tells you how much of your server\u2019s processing power is being used at a given time. Linux servers can run multiple processes simultaneously, and monitoring CPU usage helps you:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Identify resource-heavy processes.<\/li>\n\n\n\n<li>Troubleshoot slow server performance.<\/li>\n\n\n\n<li>Optimize server and application performance.<\/li>\n<\/ul>\n\n\n\n<p>Now, let\u2019s see how to check CPU usage in Linux!<\/p>\n\n\n\n<p><hr><p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/482\/check-os-kernel-version-in-linux.html\"><strong>How to Check OS Kernel Version in Linux\u200b?<\/strong><\/a><\/p><hr><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Ways to Check CPU Usage in Linux<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. Using the top Command<\/strong><\/h3>\n\n\n\n<p>The <strong>top<\/strong> command is one of the most common ways to monitor CPU usage in real-time.<\/p>\n\n\n\n<p>\u2605 <strong>Steps:<\/strong><\/p>\n\n\n\n<p>\u2794 Open your terminal.<\/p>\n\n\n\n<p>\u2794 You have to type <strong>top<\/strong> and press <strong>Enter.<\/strong><\/p>\n\n\n\n<p>\u2794 You\u2019ll see a list of running processes along with CPU usage details. Look for the <strong>%CPU <\/strong>column to see which processes are consuming the most CPU.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"656\" height=\"102\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/top-Command-use-in-linux.png\" alt=\"top Command use in linux\" class=\"wp-image-3817\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/top-Command-use-in-linux.png 656w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/top-Command-use-in-linux-300x47.png 300w\" sizes=\"auto, (max-width: 656px) 100vw, 656px\" \/><\/figure>\n<\/div>\n\n\n<figure class=\"wp-block-table note-box\"><table class=\"has-fixed-layout note-box-container\"><tbody><tr><td>\u2605 <strong>Tip: <\/strong>Press q to exit the top command when you\u2019re done.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Using the htop Command<\/strong><\/h3>\n\n\n\n<p>\u2794 <strong>htop<\/strong> is similar to top but offers a more user-friendly interface with color-coded graphs.<\/p>\n\n\n\n<p>\u2605 <strong>Steps:<\/strong><\/p>\n\n\n\n<p>Install <strong>htop<\/strong> if it\u2019s not already installed:<\/p>\n\n\n\n<p><strong># For Debian\/Ubuntu<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><button class=\"copy-btn\" onclick=\"copyCommand(this)\">\ud83d\udccb<\/button><span class=\"copy-msg\">Copied!<\/span><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>sudo apt install htop<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong># For CentOS\/RHEL<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><button class=\"copy-btn\" onclick=\"copyCommand(this)\">\ud83d\udccb<\/button><span class=\"copy-msg\">Copied!<\/span><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>sudo yum install htop<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u2794 Type <strong>htop<\/strong> in the terminal and press Enter.<\/p>\n\n\n\n<p>\u2794 You will see CPU usage represented in bars at the top. It\u2019s easy to identify which processes are taking up more CPU.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"81\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/htop-Command-use-in-linux-1024x81.png\" alt=\"htop Command use in linux\" class=\"wp-image-3818\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/htop-Command-use-in-linux-1024x81.png 1024w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/htop-Command-use-in-linux-300x24.png 300w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/htop-Command-use-in-linux-768x61.png 768w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/htop-Command-use-in-linux.png 1102w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<figure class=\"wp-block-table note-box\"><table class=\"has-fixed-layout note-box-container\"><tbody><tr><td>\u2605 <strong>Tip:<\/strong> Use the arrow keys to navigate and F10 to exit.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. Using the mpstat Command<\/strong><\/h3>\n\n\n\n<p>The <strong>mpstat<\/strong> command is part of the <strong>sysstat<\/strong> package and shows CPU usage per processor\/core.<\/p>\n\n\n\n<p>\u2605 <strong>Steps:<\/strong><\/p>\n\n\n\n<p>\u2794 You have to install <strong>sysstat<\/strong> if needed:<\/p>\n\n\n\n<p><strong># For Debian\/Ubuntu<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><button class=\"copy-btn\" onclick=\"copyCommand(this)\">\ud83d\udccb<\/button><span class=\"copy-msg\">Copied!<\/span><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>sudo apt install sysstat<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong># For CentOS\/RHEL<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><button class=\"copy-btn\" onclick=\"copyCommand(this)\">\ud83d\udccb<\/button><span class=\"copy-msg\">Copied!<\/span><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>sudo yum install sysstat<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u2794 Type <strong>mpstat<\/strong> and press <strong>Enter.<\/strong><\/p>\n\n\n\n<p>\u2794 You will see statistics such as user CPU usage, server usage, and idle time.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"681\" height=\"39\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/mpstat-Command-use-in-linux.png\" alt=\"mpstat Command use in linux\" class=\"wp-image-3819\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/mpstat-Command-use-in-linux.png 681w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/mpstat-Command-use-in-linux-300x17.png 300w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/figure>\n<\/div>\n\n\n<figure class=\"wp-block-table note-box\"><table class=\"has-fixed-layout note-box-container\"><tbody><tr><td>\u2605 <strong>Tip: <\/strong>To get continuous updates every 2 seconds, use: <strong>mpstat 2<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><hr><p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/441\/restart-linux-server-by-command.html\"><strong>How to Restart\/Reboot Linux Server by Command?<\/strong><\/a><\/p><hr><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4. Using the vmstat Command<\/strong><\/h3>\n\n\n\n<p><strong>vmstat<\/strong> provides an overview of server performance, including CPU usage.<\/p>\n\n\n\n<p>\u2605 <strong>Steps:<\/strong><\/p>\n\n\n\n<p>\u2794 Open the terminal.<\/p>\n\n\n\n<p>\u2794 Type <strong>vmstat 2 5<\/strong> and press <strong>Enter<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"681\" height=\"121\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/vmstat-Command-in-linux.png\" alt=\"vmstat Command in linux\" class=\"wp-image-3820\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/vmstat-Command-in-linux.png 681w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/vmstat-Command-in-linux-300x53.png 300w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/figure>\n<\/div>\n\n\n<p>Here, <strong>2 <\/strong>is the interval in seconds, and <strong>5<\/strong> is the number of reports.<\/p>\n\n\n\n<p>\u2794 Check the <strong>us<\/strong>, <strong>sy<\/strong>, and <strong>id<\/strong> columns for CPU usage details:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>us<\/strong> \u2013 CPU time spent on user processes<\/li>\n\n\n\n<li><strong>sy<\/strong> \u2013 CPU time spent on server processes<\/li>\n\n\n\n<li><strong>id<\/strong> \u2013 CPU idle time<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>5. Using the iostat Command<\/strong><\/h3>\n\n\n\n<p><strong>iostat<\/strong> is another tool from the <strong>sysstat<\/strong> package that gives CPU usage along with disk I\/O stats.<\/p>\n\n\n\n<p>\u2605 <strong>Steps:<\/strong><\/p>\n\n\n\n<p>\u2794 Install <strong>sysstat<\/strong> if not already installed.<\/p>\n\n\n\n<p>\u2794 Run the command:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><button class=\"copy-btn\" onclick=\"copyCommand(this)\">\ud83d\udccb<\/button><span class=\"copy-msg\">Copied!<\/span><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>iostat -c<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u2794 You will see a summary of CPU usage, including user, server, idle, and wait times.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"451\" height=\"52\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/iostat-Command-use-in-linux.png\" alt=\"iostat Command use in  linux\" class=\"wp-image-3821\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/iostat-Command-use-in-linux.png 451w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/iostat-Command-use-in-linux-300x35.png 300w\" sizes=\"auto, (max-width: 451px) 100vw, 451px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>6. Using the ps Command<\/strong><\/h3>\n\n\n\n<p>If you want to check CPU usage for a specific process, <strong>ps<\/strong> is very handy.<\/p>\n\n\n\n<p>\u2605 <strong>Steps:<\/strong><\/p>\n\n\n\n<p>\u2794 Open the terminal.<\/p>\n\n\n\n<p>\u2794 You have to run the command:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><button class=\"copy-btn\" onclick=\"copyCommand(this)\">\ud83d\udccb<\/button><span class=\"copy-msg\">Copied!<\/span><table class=\"has-fixed-layout\"><tbody><tr><td class=\"kb_firewall\"><strong>ps -eo pid,ppid,cmd,%cpu,%mem &#8211;sort=-%cpu | head<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u2794 This will show the top CPU-consuming processes, along with their memory usage.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"436\" height=\"163\" src=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/ps-Command-use-in-linux.png\" alt=\"Top CPU-consuming processes\" class=\"wp-image-3822\" srcset=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/ps-Command-use-in-linux.png 436w, https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/ps-Command-use-in-linux-300x112.png 300w\" sizes=\"auto, (max-width: 436px) 100vw, 436px\" \/><\/figure>\n<\/div>\n\n\n<p><hr><p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/440\/how-to-configure-dns-in-linux.html\"><strong>How to Configure DNS on Linux?<\/strong><\/a><\/p><hr><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Tips to Manage High CPU Usage<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\" style=\"list-style:'\\2605';\">\n\n<li>&nbsp;Identify and stop unnecessary processes.<\/li>\n\n\n<li>&nbsp;Restart services that are misbehaving.<\/li>\n\n\n<li>&nbsp;Consider upgrading hardware for consistent high usage.<\/li>\n\n\n<li>&nbsp;Use scheduling tools like <strong>nice<\/strong> or <strong>cpulimit<\/strong> to manage resource-heavy tasks.<\/li>\n\n<\/ul>\n\n\n\n<p><hr><p><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/473\/how-to-install-plesk-on-linux-server.html\"><strong>How to Install Plesk on a Linux Server?<\/strong><\/a><\/p><hr><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>Monitoring CPU usage in Linux is simple once you know the right tools. Commands like <strong>top<\/strong>, <strong>htop<\/strong>, <strong>mpstat<\/strong>, and <strong>vmstat<\/strong> help you monitor your server\u2019s performance and identify issues early. Whether you\u2019re a beginner or a sysadmin, these tools are essential for maintaining a healthy Linux server.<\/p>\n\n\n\n<p>Regularly checking CPU usage can help prevent performance bottlenecks and ensure your server runs smoothly.<\/p>\n\n\n<p><script><br \/>\nfunction copyCommand(btn) {<br \/>\n  const td = btn.parentElement.querySelector(\"td.kb_firewall\");<br \/>\n  const text = td.innerText.trim();<\/p>\n<p>  navigator.clipboard.writeText(text).then(() => {<br \/>\n    const msg = btn.parentElement.querySelector(\".copy-msg\");<br \/>\n    msg.style.display = \"inline-block\";<br \/>\n    setTimeout(() => msg.style.display = \"none\", 1000);<br \/>\n  });<br \/>\n}<br \/>\n<\/script><\/p>","protected":false},"excerpt":{"rendered":"<p>Ever felt like your Linux server is running slower than usual, or some applications are taking forever to respond? Before blaming your hardware, it\u2019s a good idea to check what\u2019s really going on under the hood. Your CPU, the brain of your computer or server, might be juggling too many tasks at once. Monitoring CPU [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[],"class_list":["post-3816","post","type-post","status-publish","format-standard","hentry","category-vps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Check CPU Usage in Linux?<\/title>\n<meta name=\"description\" content=\"Learn how to check CPU usage in Linux using simple commands like top, htop, and mpstat with our guide, which helps beginners monitor server performance.\" \/>\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.hostitsmart.com\/manage\/knowledgebase\/483\/check-cpu-usage-in-linux.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Check CPU Usage in Linux?\" \/>\n<meta property=\"og:description\" content=\"Learn how to check CPU usage in Linux using simple commands like top, htop, and mpstat with our guide, which helps beginners monitor server performance.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/483\/check-cpu-usage-in-linux.html\" \/>\n<meta property=\"og:site_name\" content=\"Host IT Smart Knowledge base\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-11T14:58:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-19T10:09:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/top-Command-use-in-linux.png\" \/>\n\t<meta property=\"og:image:width\" content=\"656\" \/>\n\t<meta property=\"og:image:height\" content=\"102\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/483\/check-cpu-usage-in-linux.html\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/483\/check-cpu-usage-in-linux.html\",\"name\":\"How to Check CPU Usage in Linux?\",\"isPartOf\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/483\/check-cpu-usage-in-linux.html#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/483\/check-cpu-usage-in-linux.html#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/top-Command-use-in-linux.png\",\"datePublished\":\"2025-12-11T14:58:52+00:00\",\"dateModified\":\"2025-12-19T10:09:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108\"},\"description\":\"Learn how to check CPU usage in Linux using simple commands like top, htop, and mpstat with our guide, which helps beginners monitor server performance.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/483\/check-cpu-usage-in-linux.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/483\/check-cpu-usage-in-linux.html#primaryimage\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/top-Command-use-in-linux.png\",\"contentUrl\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/top-Command-use-in-linux.png\",\"width\":656,\"height\":102},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/\",\"name\":\"Host IT Smart Knowledge base\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g\",\"caption\":\"Admin\"},\"sameAs\":[\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/\"],\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Check CPU Usage in Linux?","description":"Learn how to check CPU usage in Linux using simple commands like top, htop, and mpstat with our guide, which helps beginners monitor server performance.","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.hostitsmart.com\/manage\/knowledgebase\/483\/check-cpu-usage-in-linux.html","og_locale":"en_US","og_type":"article","og_title":"How to Check CPU Usage in Linux?","og_description":"Learn how to check CPU usage in Linux using simple commands like top, htop, and mpstat with our guide, which helps beginners monitor server performance.","og_url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/483\/check-cpu-usage-in-linux.html","og_site_name":"Host IT Smart Knowledge base","article_published_time":"2025-12-11T14:58:52+00:00","article_modified_time":"2025-12-19T10:09:00+00:00","og_image":[{"width":656,"height":102,"url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/top-Command-use-in-linux.png","type":"image\/png"}],"author":"Admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/483\/check-cpu-usage-in-linux.html","url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/483\/check-cpu-usage-in-linux.html","name":"How to Check CPU Usage in Linux?","isPartOf":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/483\/check-cpu-usage-in-linux.html#primaryimage"},"image":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/483\/check-cpu-usage-in-linux.html#primaryimage"},"thumbnailUrl":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/top-Command-use-in-linux.png","datePublished":"2025-12-11T14:58:52+00:00","dateModified":"2025-12-19T10:09:00+00:00","author":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108"},"description":"Learn how to check CPU usage in Linux using simple commands like top, htop, and mpstat with our guide, which helps beginners monitor server performance.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/483\/check-cpu-usage-in-linux.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/483\/check-cpu-usage-in-linux.html#primaryimage","url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/top-Command-use-in-linux.png","contentUrl":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-content\/uploads\/2025\/12\/top-Command-use-in-linux.png","width":656,"height":102},{"@type":"WebSite","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website","url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/","name":"Host IT Smart Knowledge base","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g","caption":"Admin"},"sameAs":["https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/"],"url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/3816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/comments?post=3816"}],"version-history":[{"count":11,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/3816\/revisions"}],"predecessor-version":[{"id":3947,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/3816\/revisions\/3947"}],"wp:attachment":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/media?parent=3816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/categories?post=3816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/tags?post=3816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}