Table G-9 shows differences in Linux and Solaris swap management and configuration tasks.
Task
Solaris
Linux
Create a swap space
swap -a
mkswap
Enable a swap space
swapon
Enable all swap spaces
N/A
swapon -a
Disable a swap space
swapoff
Disable all swap spaces
swapoff -a
Delete a swap space
swap -d
Display the swap space usage
swap -s
swapon -s
Display the swap space status
swap -l
Set the swap priority level
swapon -p
[*] Table A-16 of IBM Redbook