How do you remove the .SWP file in Linux?

Thảo Justin

New member
How do you remove the .SWP file in Linux?
Answer
Removing a Swap File From Use
  1. Become superuser.
  2. Remove the swap space. # /usr/sbin/swap -d /path/filename. …
  3. Edit the /etc/vfstab file and delete the entry for the swap file.
  4. Recover the disk space so that you can use it for something else. # rm /path/filename. …
  5. Verify that the swap file is no longer available. # swap -l.
 

Tìm kiếm

Back
Top