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.