[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to find out how much memory your system using "dd" command...



On Ter, 13 Out 2009, Frank Charles Gallacher wrote:

When I was a system administrator, there was a command to find out how
much real memory was on your system, logged in as root (making sure you
didn't confuse the input and output!):

dd if=/dev/mem of=/dev/null bs=1024 conv=noerror

It would chug away for a minute or two, then give you a number of
records in and out, this number was how many KB or RAM you had;
I tried this on debian, now all I get is a string of error messages...

Is there a better way???

Quite a complicated way of doing that. But if do not want to use 'free' as pointed by other people, you can always use

cat /proc/meminfo


--
In every non-trivial program there is at least one bug.

Eduardo M KALINOWSKI
eduardo@kalinowski.com.br


Reply to: