Help answer threads with 0 replies.
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 08-11-2003, 09:37 AM   #1
LQ Newbie
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
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?
Old 08-11-2003, 09:47 AM   #2
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
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
Old 08-11-2003, 10:09 AM   #3
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
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.


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
what is a swap file...? zameer_india Linux - Newbie 8 01-09-2005 11:35 PM
swap file linuxhippy Linux - General 4 10-11-2004 05:07 PM
Swap File Cyric Slackware 13 10-05-2004 12:19 AM
Swap file not being used...why? ganja_guru Linux - General 6 12-08-2003 04:41 AM
No Swap File tarballedtux Slackware 4 01-09-2003 03:07 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:50 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
Open Source Consulting | Domain Registration