Support > About cybersecurity > How to view the memory model in Ubuntu?
How to view the memory model in Ubuntu?
Time : 2025-02-24 15:23:14
Edit : Jtti

  To view the memory module (RAM) model on Ubuntu, you can use several command line tools to get detailed information. Here are some common methods:

  Method 1: Use dmidecode command

  dmidecode is a tool that can obtain computer hardware information, including detailed information about the memory module. You can use this command to view the model, manufacturer, frequency, and other information of the memory module.

  Install dmidecode tool (if not installed):

  sudo apt update

  sudo apt install dmidecode

  View memory module information:

  Run the following command to display detailed information about the memory module:

  sudo dmidecode -t memory

  The command will output information about the memory, including:

  Manufacturer: The manufacturer of the memory module.

  Part Number: The model of the memory module.

  Size: The capacity of the memory module.

  Type: The type of memory module, such as DDR4. DDR3. etc.

  Speed: The operating frequency of the memory (e.g. 2400 MHz).

  Method 2: Use lshw command

  lshw is another powerful hardware information viewing tool that can help you view detailed information of the system hardware, including memory.

  Install lshw tool (if not installed):

  sudo apt update

  sudo apt install lshw

  View memory bar information:

  Run the following command to view memory information:

  sudo lshw -C memory

  Method 3: Use free command (to view memory usage)

  Although the free command cannot directly display the model of the memory bar, it can help you view the total amount of installed memory in the system and the current usage.

  free -h

  This will display output similar to the following:

  total used free shared buff/cache available

  Mem: 16Gi 4.3Gi 9.6Gi 123Mi 2.1Gi 11Gi

  Swap: 8.0Gi 0.0Gi 8.0Gi

  Method 4: Use inxi command

  inxi is a very concise system information tool that can display a variety of hardware information including memory module model, capacity, speed, etc.

  Install inxi tool (if not installed):

  sudo apt update

  sudo apt install inxi

  View memory information:

  Run the following command:

  inxi -m

  Summary: To view the model of memory module in Ubuntu, you can use dmidecode or lshw tools. These commands will provide you with detailed memory module information including model, manufacturer, capacity, type, speed, etc. If you need a quick look at memory usage, free and inxi can also provide some basic information.

Relevant contents

How to configure multiple IP access on web server? Comparison of a single-processor server with a dual-processor server How to copy local files to a cloud server: A Comprehensive Guide A complete guide to upgrading Git to the latest version for Windows systems How to modify Ubuntu software source detailed method What is an IP address and how does it work Detail the protection principle of the American high defense server: the cutting-edge technology of guarding network security Troubleshooting and repairing SQL Server backup restoration failure A detailed tutorial for setting up a personal WordPress site on Linux Specific scenarios for installing and configuring Samba in Ubuntu
Go back

24/7/365 support.We work when you work

Support