LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Command to view memory space in linux (https://www.linuxquestions.org/questions/linux-newbie-8/command-to-view-memory-space-in-linux-427529/)

sathish80 03-22-2006 11:48 PM

Command to view memory space in linux
 
Hi,

I want to know the command to view memory space in linux

b0nd 03-23-2006 12:02 AM

hi,
#df -h

regards

pixellany 03-23-2006 12:10 AM

Or:
dd if=/dev/mem bs=1024 count=5|hexdump -C > ramfile
This writes 5 blocks of 1024 bytes each to a file

See "learn the dd command" in this subforum---just a few posts down from yours.

pixellany 03-23-2006 12:12 AM

Quote:

Originally Posted by ruudra
hi,
#df -h

regards

That's looking at drives, not memory (RAM)

Gato Azul 03-23-2006 12:23 AM

Try out the free command. If you want it to display output in megabytes use free -m.

b0nd 03-23-2006 12:25 AM

Quote:

Originally Posted by pixellany
That's looking at drives, not memory (RAM)

oops!!! I misunderstood the question.

ya for that

#free

regards

pixellany 03-23-2006 12:50 AM

Quote:

Originally Posted by Gato Azul
Try out the free command. If you want it to display output in megabytes use free -m.

OP---where are you???

free tells you the usage of memory
dd if=/dev/mem....etc. gives the contents of memory

What did you want?


All times are GMT -5. The time now is 11:05 PM.