Linux Comm Swapon
# Linux swapon Command
[ Linux Command Manual](#)
The Linux swapon command is used to activate swap space in a Linux system. The memory management of a Linux system must use swap space to establish virtual memory.
### Syntax
/sbin/swapon -a /sbin/swapon specialfile .../sbin/swapon
**Parameter Description:**
* -h Please help me
* -V Display version information
* -s Display short device information
* -a Automatically enable all SWAP devices
* -p Set priority, you can choose a number between 0 and 32767. Or add pri= ( is a number between 0 and 32767) in /etc/fstab, then you can conveniently use swapon -a to enable them, and they will have the priority setting.
swapon is for enabling swap.
Conversely, there is a command to disable swap, swapoff.
[ Linux Command Manual](#)
YouTip