Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-06-2009, 10:31 AM   #1
Registered: Sep 2009
Location: London
Posts: 52

Rep: Reputation: 15
Question How to display the size of swap?

A quick question, how to display the size of swap under OpenSuse Linux?

I use fdisk -l but it returns the size unreadable. How can I display the size in megabytes?

Old 11-06-2009, 10:38 AM   #2
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hello ggyyree,

I'm not sure what exactly you mean with "size of swap". The swapspace (size of the swappartition):
fdisk -l /dev/hda
if it resides on your hda-drive.
The amount of swapspace which is used in the moment:
free -m
where the "-m" means MB. This will list the total and the used amount of both, RAM and swapspace.

Old 11-06-2009, 10:39 AM   #3
LQ Newbie
Registered: Nov 2009
Location: Blackhole called Serbia
Distribution: Ubuntu 9.04 Jaunty on Asus Eee PC 4G surf
Posts: 16
Blog Entries: 1

Rep: Reputation: 0
try this way:
in terminal type:
sudo su[enter]
UR password when prompted

there U can choose UR main partition , in the list above U can see the swap partition size.
I hope it helps
Old 11-06-2009, 10:50 AM   #4
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
you can use
swapon -s
cat /proc/swaps


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
Swap size... simonj82 Slackware 11 06-09-2006 09:44 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
swap size kodiakmook Linux - Software 6 01-05-2002 12:52 AM
Swap Size ajtaus Linux - General 3 12-19-2001 01:19 PM
Right size swap? jamaso Linux - Newbie 7 11-12-2001 12:12 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:42 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration