Computer Science, asked by fayazahmad4029, 1 year ago

How to remove swap files using Python?

Answers

Answered by Anonymous
0

Answer:

Removing a Swap File From Use

  • Become superuser.
  • Remove the swap space. ...
  • Edit the /etc/vfstab file and delete the entry for the swap file.

Swap files have the extension . swp. Easiest way to remove all swap files from a folder recursively is to use the string function endswith with the extension name(. swp) to match file names and delete these files.

Similar questions