how to clear linux swap memory code example Example: clear swap memory linux sudo swapoff -a; sudo swapon -a