swapon
DisksAdvanced In real LinuxEnable swap space
Name: swapon = swap on
This command needs a real Linux system; you can practise it in real Linux mode.
Description
swapon enables a swap partition or file. When RAM runs short, the kernel moves idle memory pages there. swapon --show lists active swap.
Syntax
swapon [OPTION]... [DEVICE]Common options
| --show | Show active swap |
| -a / --all | Enable every swap area in /etc/fstab |
| -p / --priority PRIO | Priority (higher numbers are used first) |