How to disable all swaps on Linux Posted on Mar 24, 2018 by Q AHow to disable all swaps on Linux to force the application/kernel use the physical memory? To diable all swaps on Linux, run this command as root:# swapoff -a -a means all swaps.Similarly, to enable all swaps on Linux:# swapon -a Related posts:How to disable an option with a bash script? How to find the disk where root / is on in Bash on Linux? Lazy Linux Admins Going to Server Rooms Less: Forced Reboot, Auto Reboot after Kernel Panic and Email Notification after Reboot How to disable the coredump function of systemd on Linux? How to effectively disable a Linux user account? How to disable the email notification by crond? Force Linux to reboot How to force a fsck during next rebooting of Linux?