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