LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-06-2009, 11:31 AM   #1
ggyyree
Member
 
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?

Thanks!
 
Old 11-06-2009, 11:38 AM   #2
markush
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):
Code:
fdisk -l /dev/hda
if it resides on your hda-drive.
The amount of swapspace which is used in the moment:
Code:
free -m
where the "-m" means MB. This will list the total and the used amount of both, RAM and swapspace.

Markus
 
Old 11-06-2009, 11:39 AM   #3
Neo@Matrix
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
gparted[enter]

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, 11:50 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
you can use
Code:
swapon -s
or
Code:
cat /proc/swaps
or
Code:
top
 
  


Reply


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 10: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 03:13 AM
swap size kodiakmook Linux - Software 6 01-05-2002 01:52 AM
Swap Size ajtaus Linux - General 3 12-19-2001 02:19 PM
Right size swap? jamaso Linux - Newbie 7 11-12-2001 01:12 AM


All times are GMT -5. The time now is 09:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration