swapoff
system administrationLinux/Unix
The swapoff command is one of the most frequently used commands in Linux/Unix-like operating systems. swapoff Disable devices and files for swapping
Quick Reference
Command Name:
swapoff
Category:
system administration
Platform:
Linux/Unix
Basic Usage:
swapoff [options] [arguments]
Common Use Cases
Syntax
swapoff [options] [special]
Options
Option | Description |
---|---|
-a, --all |
Disable all swap areas specified in /etc/fstab |
-v, --verbose |
Be verbose |
-h, --help |
Display help text and exit |
-V, --version |
Display version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the swapoff
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
swapoff /dev/sdb2