Check Which Active Swap In UNIX Box

To check what swap we have in Linux box, we can use the following commands :

ttirtawi@tedy-laptop:~$ swapon -s
Filename				Type		Size	Used	Priority
/dev/sda3                               partition	3992144	0	-1
ttirtawi@tedy-laptop:~$ cat /proc/swaps
Filename				Type		Size	Used	Priority
/dev/sda3                               partition	3992144	0	-1
ttirtawi@tedy-laptop:~$

To check what swap we have in Solaris box, we can use the following commands :

root@test-box02# uname -s
SunOS
root@test-box02# swap -l
swapfile             dev  swaplo blocks   free
/dev/dsk/c0t0d0s3   32,3      16 8405360 7948592
root@test-box02#

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.