Operating System - Linux
1753546 Members
5563 Online
108795 Solutions
New Discussion юеВ

Re: Best command to display current swap partition size

 
SOLVED
Go to solution
Daniel Simard
Frequent Advisor

Best command to display current swap partition size

Good morning All,
What is the command that we can use to display the current swap partition size?
Si tu n'as pas ce que tu aimes, aimes ce que tu as.
2 REPLIES 2
John Poff
Honored Contributor
Solution

Re: Best command to display current swap partition size

Hi,

You can use the 'free' command:

$ free
total used free shared buffers cached
Mem: 1026424 1009404 17020 0 82808 637328
-/+ buffers/cache: 289268 737156
Swap: 2064376 8508 2055868


You can also look at 'swaps' in the /proc filesystem, which should show all your swap devices if you have more than one:

$ cat /proc/swaps
Filename Type Size Used Priority
/dev/mapper/VolGroup00-LogVol01 partition 2064376 8508 -1

JP

Goran┬аKoruga
Honored Contributor

Re: Best command to display current swap partition size

swapon -s