swapon [options] device-or-fileArguments explained
- Options adjust output or behavior.
- Arguments name the files, services, hosts, or values the command should work with.
Common examples
swapon --showLists enabled swap devices and files.
sudo swapon /swapfileActivates a prepared swap file.
| Field | Details |
|---|---|
| Command | swapon |
| Category | Disk and Storage |
| Primary use | Enables swap devices or files. |
| Syntax | swapon [options] device-or-file |