1

How do i view how much ram is installed on my PC It's supposed to be 8GB but with a command i tried it says 6GB ram and 2GB swap file

            total        used        free      shared  buff/cache   available
Mem:        6111392     1968428     1709540       60312     2433424     3794260
Swap:       2097148           0     2097148
venomx
  • 305
  • 1
  • 4
  • 10

1 Answers1

5

To view how much ram your system has, you can use the free command

[sol Build]$ free -h

              total        used        free      shared  buff/cache   available
Mem:           15Gi       3.0Gi       6.5Gi       842Mi       6.0Gi        11Gi
Swap:         8.0Gi          0B       8.0Gi

if you're interested, you can also check out whats going on in /proc

cat /proc/meminfo

or to get the total physical ram installed in the system

awk '/MemTotal/ {print $2}' /proc/meminfo
j-money
  • 2,516
  • 1
  • 11
  • 20