What Is Linux Swapfile?
Contents a Swap File Allows Linux to Simulate the Disk Space as Ram. When Your System Starts Running out of Ram, It Uses the Swap Space to and Swaps Some...
A swap file allows Linux to simulate the disk space as RAM. When your system starts running out of RAM, it uses the swap space to and swaps some content of the RAM on to the disk space. This frees up the RAM to serve more important processes. When the RAM is free again, it swaps back the data from the disk.
Can I delete swapfile Linux?
The swap file name is removed so that it is no longer available for swapping. The file itself is not deleted. Edit the /etc/vfstab file and delete the entry for the swap file. Recover the disk space so that you can use it for something else.
Must Read
Is it safe to delete swapfile?
You can not delete a swap file. sudo rm does not delete the file. It “removes” the directory entry. In Unix terminology, it “unlinks” the file.