swapon


swapon

Purpose

Activate the specified swap device or file.

Syntax

swapon [-a] device

Options

-a enables all swap devices listed in the /etc/fstab file.

Description

The swapon command activates the specified device or file as a swap space. During system startup, all swap spaces are activated by the swapon -a command, which is invoked by the script file /etc/rc.d/rc.sysinit.