Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-15-2009, 08:58 PM   #1
Registered: May 2003
Posts: 33

Rep: Reputation: 15
newbie free question

Hi guyz,
Can someone explain the free command to me and show me how to tell if the RAM is being used completely.

[12:10pm]# free -m
total used free shared buffers cached
Mem: 3010 2984 25 0 14 2317
-/+ buffers/cache: 652 2357
Swap: 1992 0 1992

Based on the above, show 2984 being used and 25 free but below that is -/+buffers/cache with 652 being used and 2357 being free? can anyone point me in the right direction as to what to look for? Thanks!!
Old 07-15-2009, 09:04 PM   #2
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
man free
Old 07-15-2009, 09:19 PM   #3
Senior Member
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 210Reputation: 210Reputation: 210
Yea, rtfm like the guy above said. But also:

jameson@salmon:~$free -m
             total       used       free     shared    buffers     cached
Mem:          3886       1720       2166          0        146        759
-/+ buffers/cache:        814       3071
Swap:         7632          0       7632
Those are the ones that matter, really. -m puts the values in megabytes. Linux caches stuff with free memory space and if you run out of memory for important stuff the caches get flushed. The man page doesn't really explain that.

Last edited by jhwilliams; 07-15-2009 at 09:22 PM.
Old 07-15-2009, 10:35 PM   #4
Registered: May 2003
Posts: 33

Original Poster
Rep: Reputation: 15
Old 07-16-2009, 01:44 AM   #5
LQ Newbie
Registered: Jul 2009
Posts: 4

Rep: Reputation: 0
i didnt notice that. thanks for the info!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question regarding this line "Free taken as in free speech, not free beer" SHENGTON Linux - Newbie 11 01-12-2009 07:40 AM
free bsd newbie irish rebel *BSD 2 01-15-2005 02:49 PM
dA FrEe BsD! nEwBiE! Vyeperman *BSD 14 09-02-2003 08:39 AM
Silly Newbie Question: which free server distro is best??? scottyman Linux - Distributions 7 02-03-2003 12:43 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration