LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Swap file (https://www.linuxquestions.org/questions/linux-newbie-8/swap-file-80939/)

sparkplug55 08-11-2003 08:37 AM

Swap file
 
I just installed Red Hat 9 and i want to check how much memory is in the swap file. How do i do this?

TheOneAndOnlySM 08-11-2003 08:47 AM

in a terminal, try doing fdisk -l /dev/hda

look probably for the last entry, it should say linux swap

if u can't do it in a terminal, exit x windows by doing ctrl alt f2, login as root with only a console, and then do fdisk -l /dev/hda

*there might be a graphical tool that allows u to check, just look through the system tools menu, i'm pretty sure there is one

aaa 08-11-2003 09:09 AM

If you're using a swap file (and not a swap partition), look in the fstab file to find out where it is. Then just look at the file's properties to find out how big it is. Run "free" to find out how it's being used.


All times are GMT -5. The time now is 02:44 PM.