• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / Command To Check CPU And Memory Utilization In Linux Ubuntu

Command To Check CPU And Memory Utilization In Linux Ubuntu

By Sourabh / May 21, 2022 Category: How To, Ubuntu

How to check CPU and memory utilization in Linux Ubuntu? Here is the Linux command to check memory utilization in percentage or check memory usage Linux by process.

top Command

top is used to display Linux processes. It provides a dynamic real-time view of a running system. It displays system summary information as well as a list of processes or threads currently being managed by the Linux kernel.

The top command displays information about:

  1. uptime
  2. average load
  3. tasks running
  4. number of users logged in
  5. number of CPUs/CPU utilization
  6. memory/swap system processes

Note that the data is continuously updated and top command details the processes in real-time.

The top command provides a limited interactive interface for process manipulation as well as a much more extensive interface for personal configuration.

Two of the most important factors displayed by the top command are:

  1. %CPU — CPU Usage: The task’s share of the elapsed CPU time since the last screen update, expressed as a percentage of total CPU time. In a true SMP environment, if a process is multi-threaded and top is not operating in Threads mode, amounts greater than 100% may be reported.
  2. %MEM — Memory Usage (RES): A task’s currently used share of available physical memory.

If you want to make top a bit more memory-friendly, issue the command top -o %MEM, which will cause top to sort all processes by memory used (see figure below).

The top program provides a dynamic real-time view of a running system. It can display system summary information as well as a list of processes or threads currently being managed by the Linux kernel. The types of system summary information shown and the types, order and size of information displayed for processes are all user configurable and that configuration can be made persistent across restarts.

Another great command is htop. It is similar to the top command, but the htop command is more interactive. The htop command uses color for its output, displays full command lines for processes. Unlike top command, the htop command comes with the option to scroll both vertically and horizontally.

Primary Sidebar

Latest Posts

Use Locate Command To Find File In Linux Terminal By Name

How To Change Terminal Color In Ubuntu Command Line

How To Run Fsck Manually In Linux To Fix Unexpected Inconsistency

How To Fix Broken Packages On Ubuntu From Terminal

Re Execute The Previous Command In Linux Ubuntu Command Line

How Much RAM Is Needed For Ubuntu PC

How To Find Large Files And Directories In Linux Command Line

How To Use Clear Command History In Linux Terminal

Linux Command To Check RAM Size In Ubuntu Terminal In GB

How To Install Proprietary Drivers In Linux Ubuntu Using Terminal

© 2026 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap