how to delete SWAP file
we use centos7.
File swapped while running vim. Now how to delete the swap file. Thanks Muhitul |
The swap file is a hidden file created typically in the same directory as the file you were editing.
.file_name.swp |
1. FYI, Vim automatically creates swap files in home directory, that you can find in .vimrc.swp
2. once you find swap files, use below command to delete it, rm filename.swp |
there are two cases
1. vi (or vim) is still running, in that case do not touch it, vi will (should) manage it. 2. it is not in use any more, in that case you can safely delete it by hand. |
All times are GMT -5. The time now is 08:39 AM. |