Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux swapon Command

Linux swapon Command

Linux Command Reference Linux Command Reference

The Linux swapon command is used to activate swap space on a Linux system; Linux memory management must use swap space to create virtual memory.

Syntax



/sbin/swapon -a [-v]

/sbin/swapon [-v] [-p priority] specialfile ...

/sbin/swapon [-s]

Parameter Description:

swapon turns swap on.

Correspondingly, there is a command to turn swap off: swapoff.

Linux Command Reference Linux Command Reference