Subscribe to How-To Geek

Display available memory on Linux / Ubuntu

Run this command from a terminal window. This works on debian, ubuntu, and redhat. I’m sure it works on others but those are the only ones I have access to.

cat /proc/meminfo

You should see results similar to this:

MemTotal:      3615716 kB
MemFree:        132528 kB
MemShared:           0 kB
Buffers:         50028 kB
Cached:        1572772 kB
SwapCached:      80716 kB
Active:         580208 kB
Inactive:      1142848 kB
HighTotal:     2752384 kB
HighFree:         8576 kB
LowTotal:       863332 kB
LowFree:        123952 kB
SwapTotal:     2104504 kB
SwapFree:      1064540 kB
| More
This article was originally written on 09/11/06 Tagged with: SysAdmin, Ubuntu

Daily Email Updates

You can get our how-to articles in your inbox each day for free. Just enter your name and email below:


Name:
Email:

Comments (4)

  1. asnd16

    thanks

  2. nomad

    or use command free

  3. dude

    hmmm… when i’m trying the command : free -m
    the result is different.

    cat /proc/meminfo :
    MemTotal: 4054364 kB
    MemFree: 338924 kB

    free -m :
    total used free shared buffers cached
    Mem: 3959 3491 468 0 8 787

    can U explain about this?

  4. Shane

    I know this was a while ago, but in case somebody else uses this page for reference.

    The command ‘free -m’ will display the memory in MB’s where the ‘free’ alone is in kb’s


Leave a Comment




Leave your friendly comment here.

If you have a computer help question, click here to leave it on the forums instead.

Note: Your comment may not show up immediately on the site.

Our Friends
Getting Started


About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
mDNSResponder.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
conhost.exe
Dpupdchk.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. All Rights Reserved.