Ask Ubuntu Asked by corrupt_disk1 on November 23, 2021
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?
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP