swapoff
swapoff is a Linux command in the Disk & Storage category, rated intermediate difficulty. Disables a swap device or file. The syntax is swapoff [options] [device]. It returns swap disabled. A practical example: sudo swapoff /dev/sdb2 sudo swapoff -a # Disable all swaps A close relative is mount, which mounts a filesystem to make it accessible at a directory. A close relative is umount, which unmounts a mounted filesystem. A close relative is fdisk, which manages disk partition tables (create, delete, resize partitions). More about this category: Linux disk and storage commands — mount, umount, fdisk, lsblk, and more. Manage disks, partitions, and filesystems. Related Disk & Storage commands: mount, umount, fdisk, blkid, dd, lsblk, parted, mkfs. This page is part of the free Linux Reference documentation covering 304+ commands, each with syntax, options, practical examples, and a difficulty rating.