0

I would like to clear my swap on shutdown because I heard that swap does not get cleared like ram and any personal information on it could be preserved. I don't want to encrypt the swap as I had previous issues with that.

I know sudo swapoff -a && sudo swapon -a will clear the swap, but how can I get my PC to execute that on shutdown, is there some sort of script I can add this to? Or am I terribly mistaken and swap DOES get cleared?

Braiam
  • 69,112

0 Answers0