The basic syntax of the swapon command is:
swapon OPTIONS] [DEVICE] .Here, "DEVICE" represents the device where the swap space is located.
Some common options for the swapon command include:
Examples:
# swapon -s ← Display swap usage information Filename Type Size Used Priority /dev/sda3 nbsp; partition 1048572 0 -2 # swapon /tmp/swap-filename ←Enable a specific swap file # swapon /dev/sdc1 ←Enable a specific swap partition |