Results 1 to 7 of 7
Hi All,
In Windows i can get those informations using the properties of My Computer.
What is the command to check the RAM Size in Linux Machine?...
- 01-16-2008 #1Just Joined!
- Join Date
- Dec 2007
- Location
- chennai-TN,India
- Posts
- 42
Command to Check the RAM Size
Hi All,
In Windows i can get those informations using the properties of My Computer.
What is the command to check the RAM Size in Linux Machine?
- 01-16-2008 #2
Execute this
Code:free -m
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 01-16-2008 #3Just Joined!
- Join Date
- Dec 2007
- Location
- chennai-TN,India
- Posts
- 42
But i get details something like this,
mydb:~ # free
total used free shared buffers cached
Mem: 8310620 8015856 294764 0 14096 6887988
-/+ buffers/cache: 1113772 7196848
Swap: 2104472 96 2104376
Can u please tell me which is RAM Size and what are the other details?
- 01-16-2008 #4
Mem is Ram size in bytes. Use -m option for output in MB.
SWAP is the size of SWAP partition.It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 01-16-2008 #5
Run this:
Looks like you're using up a lot of memory. Top displays your memory usage a little better as far as the "easy to read" factor goes.Code:top
I praise Webmin and PuTTy!
Registered Linux User: 439431
- 01-16-2008 #6Just Joined!
- Join Date
- Dec 2007
- Location
- chennai-TN,India
- Posts
- 42
Thanks for all.
- 02-05-2009 #7Just Joined!
- Join Date
- Feb 2009
- Posts
- 6
If you want TOTAL PHYSICAL RAM, use this...
free, free -m or top doesn't seem to give you total physical RAM, the value is minus kernel size and some other stuff. The only way I've found to get total physical RAM so far is with this:
dmesg | grep ^Memory:
The second value is the physical RAM size. It'll also tell you what other junk is subtracted from that to give you what you get with "free"...
--
Sync


