Hi
I am getting this messg. when i open host file ATTENTION Found a swap file by the name "/etc/.hosts.swp" dated: Fri Apr 20 14:41:42 2001 owned by: root file name: /etc/hosts host name: linux user name: root process ID: 484 While opening file "/etc/hosts" dated: Thu Mar 7 11:37:58 2002
CAN I DELETE .hosts.swp file & How ...?
__________________________________________________ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/
If u open any file in vi editor, a swp file is created and the file is automatically deleted when u exit from the vi session. But, it ur vi session crashes( OR u kill the terminal, the .swp file remains.
Also, if the file is already opened by another vi session, this kind of warning is flashed.
U can safely delete the .swp file using rm command. ls -a .hosts.swp rm -f .hosts.swp
HTH - KDLinux --- pavan sharma pavansh@yahoo.com wrote:
Hi
I am getting this messg. when i open host file ATTENTION Found a swap file by the name "/etc/.hosts.swp" dated: Fri Apr 20 14:41:42 2001 owned by: root file name: /etc/hosts host name: linux user name: root process ID: 484 While opening file "/etc/hosts" dated: Thu Mar 7 11:37:58 2002
CAN I DELETE .hosts.swp file & How ...?
Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ _______________________________________________ http://mm.ilug-bom.org.in/mailman/listinfo/linuxers
__________________________________________________ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/
+++ pavan sharma [07/03/02 21:48 -0800]:
Hi
I am getting this messg. when i open host file ATTENTION Found a swap file by the name "/etc/.hosts.swp" dated: Fri Apr 20 14:41:42 2001 owned by: root file name: /etc/hosts host name: linux user name: root process ID: 484 While opening file "/etc/hosts" dated: Thu Mar 7 11:37:58 2002
CAN I DELETE .hosts.swp file & How ...?
You had an open vi(m) session when you tried to openb this file. If there is no vi(m) session holding this file open, rm -f /etc/.hosts.swp will fix the warning.
Devdas Bhagat