TLDR
Enter a command. For example: logwatch, xed, lsns, pkgmk, mate screenshot.

swapon

 
Enables device or file for swapping. More information: https://manned.org/swapon.
 
  • Get swap information:
     
    swapon -s
     
  • Enable a given swap partition:
     
    swapon {{/dev/sdb7}}
     
  • Enable a given swap file:
     
    swapon {{path/to/file}}
     
  • Enable all swap areas:
     
    swapon -a
     
  • Enable swap by label of a device or file:
     
    swapon -L {{swap1}}

This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.