Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Me using one txt filefrom terminal .... suddenly My Computer was improperly shutdown accidentally....then i reboot it..... and trying to use same txt file from terminal.... at that time i got this swap file message.. as follows
E325: ATTENTION
Found a swap file by the name ".Abbrevations_ofComputerWords.txt.swp"
owned by: root dated: Thu Jan 6 11:02:32 2005
file name: ~root/zam/Abbrevations_ofComputerWords.txt
modified: no
user name: root host name: redhat
process ID: 4237
While opening file "Abbrevations_ofComputerWords.txt"
dated: Fri Jan 7 14:50:04 2005
NEWER than swap file!
(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r Abbrevations_ofComputerWords.txt"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".Abbrevations_ofComputerWords.txt.swp"
to avoid this message.
*************************************************************************************************
this is the first time i experience with such type of incident..
.............Actually what is this "Swap File"????????????
why it was created?
i went with R option for recovery....? any help would be appreciate
well mr electro... actaully my question was ....among 4 options Recovery , Delete, Edit,Read Only.... which option is recommended???????
Suppose what happens when we select first- Delete instead of recovery... ??
I created one file .txt and shutdown improperly.. and then restart this time select Delete option... after that i got my previous file (original file) .... then i created another file .txt and I done same process now this time i select Recovery .... my file was recovered ... i closed this file again i started this .txt file ... i got this swap file message again .... so from this experiment what can i concluded .. that Delete is Recommended than other three options?.....is it correct??????
I understand "swap file" as being like virtual RAM. I was told the swap file system was introduced to compensate for inadequate amounts of RAM in early computers.
As for your problem I don't know much about linux but I would guess your system did not shutdown cleanly and the text file you were working on "got stuck" in the swap. Recovery was probably the best option so if it works save your text file somewhere and if you get the same message next time you load then delete it.
If you are working from console make sure you shut down propoerly using the "halt" command.
Actually, the swap file was created by vim and has nothing to do with virtual memory. It is a backup file used by the editor. Whether you delete or recover would really depend on the situation.
Originally posted by Electro Sorry I'm not going to tell you what to do.
Useless post. If you are not going to help, why on earth did you bother posting? The original poster is obviously new to this and has never encountered the problem. If you see a post you are unwilling to help with, pass on by: it is pointless to post only to say that you don't want to help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.