- Find Linux RAM Information Command
- Find Used and Free RAM Info Command
- Find Out Ram Speed, Make, Form Factor, Type and Other Information
- Find Ram Size in Linux Using free And top Commands
- Use /proc/meminfo file to find ram size in Linux
- Use free Command to check RAM size
- The free command options
- Finding free and used ram info using the vmstat command
- The top Command
- GUI system information tool
- Say hello to dmidecode Command
- Related media
- Conclusion
- Linux Check Ram Speed and Type Commands
- Linux check ram speed and type commands
- Installation
- How to check ram speed and type on Linux or Unix-like system
- Say hello to lshw
Find Linux RAM Information Command
H ow do I find out ram information under Linux operating systems?
You can use the following commands to find information about RAM under Linux operating systems.
Find Used and Free RAM Info Command
You need to use the free command:
# free
# free -m
(Fig. 01: Display amount of free and used memory in the system)
- No ads and tracking
- In-depth guides for developers and sysadmins at Opensourceflare✨
- Join my Patreon to support independent content creators and start reading latest guides:
- How to set up Redis sentinel cluster on Ubuntu or Debian Linux
- How To Set Up SSH Keys With YubiKey as two-factor authentication (U2F/FIDO2)
- How to set up Mariadb Galera cluster on Ubuntu or Debian Linux
- A podman tutorial for beginners – part I (run Linux containers without Docker and in daemonless mode)
- How to protect Linux against rogue USB devices using USBGuard
Join Patreon ➔
Find Out Ram Speed, Make, Form Factor, Type and Other Information
You need to use the dmidecode command:
# dmidecode —type 17
OR
# dmidecode —type memory
OR
# dmidecode -t 17
Sample outputs:
(Fig. 01: Finding RAM Speed, Manufacturer, Type such as DDR2, and other info)
🐧 Get the latest tutorials on Linux, Open Source & DevOps via
Category | List of Unix and Linux commands |
---|---|
Documentation | help • mandb • man • pinfo |
Disk space analyzers | df • duf • ncdu • pydf |
File Management | cat • cp • less • mkdir • more • tree |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Linux Desktop Apps | Skype • Spotify • VLC 3 |
Modern utilities | bat • exa |
Network Utilities | NetHogs • dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • glances • gtop • jobs • killall • kill • pidof • pstree • pwdx • time • vtop |
Searching | ag • grep • whereis • which |
Shell builtins | compgen • echo • printf |
Text processing | cut • rev |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
Comments on this entry are closed.
free -m
dmidecode
probably just a typo, it should be:
# dmidecode –type 17
Thanks for very informative site,
Thanks for the heads up! The faq has been updated.
is also a good command if you like a graphical display of RAM
Good , i like htop.
less /proc/meminfo will give you detailed information on your systems memory. This is where all other utilities are pulling the information from.
If dmidecode pulls RAM info from /proc/meminfo then it’s using some super-dodecahedral secret decoder ring because “speed” and “type” aren’t there in “cat /proc/meminfo”.
عندي سؤال اذا ممكن حدا يجاوبني
how display information in ram?
Are you asking how to display the *contents* of RAM?
So now you need to install and lookup a command to find out such basic information as the memory type when Linux used to tell you in dmesg and the BSD’s still do.
I guess ‘modern’ Linux get’s more like windows every day. Will we be seeing vendor and product id codes in ALL cases rather than names next and hex error codes and unusable interfaces such as the registry requiring a second screen with a web browser to interpret becoming the norm.
such basic information as the memory type when Linux used to tell you in dmesg
That must have been a *long* time ago, since I’ve been using Linux since around Y2K (not for that reason though) and don’t remember dmesg ever having the level of detail that dmidecode has.
Источник
Find Ram Size in Linux Using free And top Commands
Use /proc/meminfo file to find ram size in Linux
Tutorial details | |
---|---|
Difficulty level | Easy |
Root privileges | Yes |
Requirements | None |
Est. reading time | 5m |
The /proc/meminfo file tells you about memory usage on the server. This file is used by the free command and many other Linux commands to display the amount of free and used memory (both physical and swap) on the system as well as the shared memory and buffers used by the kernel. Type the following cat command/less command to view total installed ram and used ram, enter:
$ less /proc/meminfo
OR
$ cat /proc/meminfo
Sample outputs:
Of course, we can use the grep command/egrep command as follows to filter out information:
Use free Command to check RAM size
Free command is a frontend to /proc/meminfo file. It provides more human-readable output to show you the total amount of free and used physical and swap memory in the system, as well as the buffers used by the kernel, run:
$ free -m
OR
$ free -g
Sample outputs:
The free command options
From the free(1) man page:
Hence, we try those options too:
$ free
$ free -m
$ free -g -t -o
$ free -t
$ free -o
Finding free and used ram info using the vmstat command
The vmstat command can display memory statistics including additional information about processes, paging, block IO, traps, and cpu activity. Pass the -s option to the vmstat to show us memory statistics as follows:
$ vmstat -s
Sample outputs:
The top Command
The top command provides a dynamic real-time view of a running system including a quick summary information about RAM, CPU as well as a list of tasks currently being managed by the Linux kernel. Type the following command:
$ top
Sample outputs:
Fig.01: Display Linux RAM Size with the top commad
GUI system information tool
The System Monitor Gnome or KDE application enables you to display basic system information and monitor system processes, usage of system resources, and file systems. You can start System Monitor in the following ways:
Click on System menu > Choose Administration > System Monitor
Alternatively, type the following command:
$ gnome-system-monitor
Sample outputs:
Linux view installed memory with the System Monitor application
- No ads and tracking
- In-depth guides for developers and sysadmins at Opensourceflare✨
- Join my Patreon to support independent content creators and start reading latest guides:
- How to set up Redis sentinel cluster on Ubuntu or Debian Linux
- How To Set Up SSH Keys With YubiKey as two-factor authentication (U2F/FIDO2)
- How to set up Mariadb Galera cluster on Ubuntu or Debian Linux
- A podman tutorial for beginners – part I (run Linux containers without Docker and in daemonless mode)
- How to protect Linux against rogue USB devices using USBGuard
Join Patreon ➔
Say hello to dmidecode Command
The dmidecode command is used for dumping a computer’s DMI (some say SMBIOS) table contents in a human-readable format. This table contains a description of the system’s hardware components, as well as other useful pieces of information such as serial numbers and BIOS revision. Thanks to this table, you can retrieve this information without having to probe for the actual hardware. To see complete information about memory, enter:
$ sudo dmidecode —type memory
Sample outputs:
Related media
This tutorial is also available in a quick video format:
Conclusion
In this tutorial, you learned how to use the various command line and GUI tools amount of free and used memory in the Linux system. See free and vmstat command man page here and here:
man free
man vmstat
man top
man htop
🐧 Get the latest tutorials on Linux, Open Source & DevOps via
Источник
Linux Check Ram Speed and Type Commands
H ow do I check RAM speed and type (line DDR or DDR2 or DDR3 or DDR4) without opening my computer? I need to purchase RAM and I need to know the exact speed and type installed. How do I find out ram information from a shell prompt? How can I check ram speed in Linux?
You need to use biosdecode command line utility. Dmidecode is a tool or dumping a computer’s DMI (some say SMBIOS) table contents in a human-readable format.
Tutorial details | |
---|---|
Difficulty level | Easy |
Root privileges | Yes |
Requirements | None |
Est. reading time | 1m |
The output contains a description of the system’s hardware components, as well as other useful pieces of information such as serial numbers and BIOS revision. This command works on Linux, UNIX and *BSD based computers.
Linux check ram speed and type commands
The procedure is as follows:
- Open the terminal application or log in using ssh command.
- Type the “ sudo dmidecode —type 17 ” command.
- Look out for “Type:” line in the output for ram type and “Speed:” for ram speed.
Installation
Use the apt command/apt-get command to install dmidecode on a Debian or Ubuntu Linux:
sudo apt install dmidecode
Fedora Linux user, type the following dnf command:
sudo dnf install dmidecode
CentOS/RHEL/Oracle Linux user, run the following yum command:
sudo yum install dmidecode
SUSE/OpenSUSE user, run the following zypper command:
sudo zypper install dmidecode
How to check ram speed and type on Linux or Unix-like system
Open a shell prompt and type the following command as root user:
$ sudo dmidecode —type 17
OR
$ sudo dmidecode —type 17 | more
Sample output:
You can just grep speed (see grep command) and skip all other the details using the following syntax:
- No ads and tracking
- In-depth guides for developers and sysadmins at Opensourceflare✨
- Join my Patreon to support independent content creators and start reading latest guides:
- How to set up Redis sentinel cluster on Ubuntu or Debian Linux
- How To Set Up SSH Keys With YubiKey as two-factor authentication (U2F/FIDO2)
- How to set up Mariadb Galera cluster on Ubuntu or Debian Linux
- A podman tutorial for beginners – part I (run Linux containers without Docker and in daemonless mode)
- How to protect Linux against rogue USB devices using USBGuard
Join Patreon ➔
Say hello to lshw
You can use the following command too:
$ sudo lshw -short -C memory
Sample outputs:
Another outputs from my work laptop:
Finding the frequency and type of my current RAM in Linux
Conclusion
You learned how to find out ram speed and other information using Linux and Unix terminal commands.
🐧 Get the latest tutorials on Linux, Open Source & DevOps via
Category | List of Unix and Linux commands |
---|---|
Documentation | help • mandb • man • pinfo |
Disk space analyzers | df • duf • ncdu • pydf |
File Management | cat • cp • less • mkdir • more • tree |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Linux Desktop Apps | Skype • Spotify • VLC 3 |
Modern utilities | bat • exa |
Network Utilities | NetHogs • dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • glances • gtop • jobs • killall • kill • pidof • pstree • pwdx • time • vtop |
Searching | ag • grep • whereis • which |
Shell builtins | compgen • echo • printf |
Text processing | cut • rev |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
Comments on this entry are closed.
lol; i like you’re site and your howto’s very very much. However, now I know I have to follow your stuff with an unknown type of ram, at an unknown speed. lol
seriously, keep up the good work! 😀
If only there was a way to see what rank it is too :(.
I’m using Ubuntu 8.10 alpha 3 32bits.
Using dmidecode I get the following results:
jp@jp-desktop810:
$ sudo dmidecode –type 17
[sudo] password for jp:
# dmidecode 2.9
SMBIOS 2.2 present.
Invalid entry length (0). DMI table is broken! Stop.
$ sudo dmidecode –type 17 | more
# dmidecode 2.9
SMBIOS 2.2 present.
Invalid entry length (0). DMI table is broken! Stop.
So, dmidecode is same version, SMBIOS is 2.2 instead of 2.4. And I didn’t get the information from dmidecode.
You may need to report bug to Ubuntu team. There is not much we can do to fix this issue.
I get only this:
# dmidecode 2.9
SMBIOS 2.3 present.
and no more info!
Tried both commands.
How can i get info like size, speed, type etc. ?
dmidecode –type memory
This should work as well 🙂
You can try using the following command combination and see if that works:
dmidecode |grep -A20 ^Memory
Gagan Brahmi,
Thanks, works well. 😛
I am using Fedora 9. 2.6.25.14-108.fc9.i686
Intel(R) Pentium(R) 4 CPU 3.00GHz
Here is the dmidecode –type 17 output.
No type and speed info.
# dmidecode 2.9
SMBIOS 2.3 present.
Handle 0x0028, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x0027
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: DIMM
Set: None
Locator: A0
Bank Locator: Bank0/1
Type: Unknown
Type Detail: None
Speed: Unknown
Manufacturer: None
Serial Number: None
Asset Tag: None
Part Number: None
Handle 0x0029, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x0027
Error Information Handle: Not Provided
Total Width: Unknown
Data Width: Unknown
Size: No Module Installed
Form Factor: DIMM
Set: None
Locator: A1
Bank Locator: Bank2/3
Type: Unknown
Type Detail: None
Speed: Unknown
Manufacturer: None
Serial Number: None
Asset Tag: None
Part Number: None
Handle 0x002A, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x0027
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: DIMM
Set: None
Locator: A2
Bank Locator: Bank4/5
Type: Unknown
Type Detail: None
Speed: Unknown
Manufacturer: None
Serial Number: None
Asset Tag: None
Part Number: None
Handle 0x002B, DMI type 17, 27 bytes
Memory Device
Array Handle: 0x0027
Error Information Handle: Not Provided
Total Width: Unknown
Data Width: Unknown
Size: No Module Installed
Form Factor: DIMM
Set: None
Locator: A3
Bank Locator: Bank6/7
Type: Unknown
Type Detail: None
Speed: Unknown
Manufacturer: None
Serial Number: None
Asset Tag: None
Part Number: None
What will be the problem?
Is this a white box?? That is what I can make out. Just try the following command to see the server model:
dmidecode –type system
or
dmidecode –type 1
Источник