Toogit Social Post

Reena Shah

one year ago
.swp file in unix :(

I am getting below error when i wrote shell script file and try to open it:

Swap file "" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:

why it created .swp file automatically?
How to tell unix not to ask this question.

please advise

2 comments, 0 Followers

thank you Jesse. This .swp file was not visible. After some research i found it using "ls -a" command. Thanks!

by Reena Shah one year ago

You can remove .swp file. It's created when you open a file. It stays there if you were unable to close the file properly (like session terminated). It's safe to rm this file.

by Jesse George one year ago