Results 1 to 10 of 10
hi all...when i was editing my XFree86 files, suddenly the electricity at my home was gone. After several minutes, everything was OK and i reboot my pc. And when i ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-20-2007 #1Just Joined!
- Join Date
- Jan 2007
- Posts
- 51
[RESOLVED] how to delete swap file
hi all...when i was editing my XFree86 files, suddenly the electricity at my home was gone. After several minutes, everything was OK and i reboot my pc. And when i want to edit the same file again, a message appear saying that there is swap file saved with the extension filename.swp when my system crashed. how can i delet it to avoid seeing the msg everytime i want to edit the file.
- 03-20-2007 #2Linux Newbie
- Join Date
- Feb 2007
- Location
- San Antonio, TX
- Posts
- 114
it should say the name of the file in that message, something like:
.filename.swp
just delete that file and it will stop bugging you
- 03-21-2007 #3
Actually swap file is hidden so type .filename.swp to delete this:
$ rm -f .filename.swp
- 03-21-2007 #4Just Joined!
- Join Date
- Jan 2007
- Posts
- 51
seems nothing delete...when i want to open the file..the messge saying that i have a swp file still appear.
- 03-21-2007 #5Linux Newbie
- Join Date
- Feb 2007
- Location
- San Antonio, TX
- Posts
- 114
type
ls -a
and look for a file called .filename.swp, that's what you want to delete
- 03-22-2007 #6Just Joined!
- Join Date
- Jan 2007
- Posts
- 51
generally, where is the .swp file is located? in the same directory of the original file?
- 03-22-2007 #7Code:
find -iname *.swp
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 03-22-2007 #8Linux Newbie
- Join Date
- Feb 2007
- Location
- San Antonio, TX
- Posts
- 114
yes, if you do
Originally Posted by sintaq
ls -a
you should see the file you're opening, and right before/after it will be the swap file
- 03-22-2007 #9Just Joined!
- Join Date
- Jan 2007
- Posts
- 51
thanx for guiding me...i find it and able to delete the swap file. when i editing the original file..the msg doesnt appear anymore.. thanx all!
hi devils_casper...still remember me? seems like u have news avatar! hehehe
- 03-22-2007 #10
Hi sintaq,
i do remember you.
and yes, i have changed my avatar.
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First


Reply With Quote
