LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-13-2003, 10:59 PM   #1
durden2.0
Member
 
Registered: May 2003
Distribution: redhat 9.0
Posts: 113

Rep: Reputation: 15
displaying swap space size with df


I am trying to see how big the default redhat install made my swap space (just curious). I usually use df -h to show the filesystems. However, this does not show the swap space, /dev/hda3. I was wondering how else I can display the size of the swap space and make it human-readable like the -h with df does? I can see the swap space and stuff with fdisk, but I wanted an easier way to read it and such. Thanks!!
 
Old 07-13-2003, 11:31 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
fdisk -l | grep swap
/dev/hda3 1265 1325 461160 82 Linux swap
/dev/hdb2 14 71 465885 82 Linux swap
 
Old 07-14-2003, 01:07 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Try using 'free' and/or 'top' to display the swap size/usage. As for a -h option, I don't either one of those have it. (the human readable option). But I am sure there are graphical tools that are in -h mode (check KDE's control center, sounds familiar...)

Cool
 
  


Reply



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
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 07:05 AM
displaying space available for ftp client (OpenBSD) eugenewg *BSD 1 01-06-2005 09:58 PM
A simple command displaying the size of a directory satimis Linux - Newbie 5 11-24-2004 12:06 AM
Why should you give the size of the swap disk as twice the size of RAM vmniza Linux - Newbie 3 09-17-2004 02:13 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration