Connecting Tech Pros Worldwide Help | Site Map

innittab file is currupted

Banned
 
Join Date: Jul 2008
Posts: 47
#1: Oct 16 '08
in linux there is a swap file generated while we open innittab file by this command :- vi etc/innittab then it is not open due to exist swap file . so please give the solution because i want to use this file and i need it in correct format .so please give solution.
Nepomuk's Avatar
Moderator
 
Join Date: Aug 2007
Location: Germany
Posts: 2,466
#2: Oct 16 '08

re: innittab file is currupted


Quote:

Originally Posted by gaurav92K

in linux there is a swap file generated while we open innittab file by this command :-

Expand|Select|Wrap|Line Numbers
  1. vi etc/innittab
then it is not open due to exist swap file . so please give the solution because i want to use this file and i need it in correct format .so please give solution.

Hi gaurav92K!
vi creates a temporary file, which in this case seemingly wasn't removed. In your case, that would be the file /etc/.innittab.swp. Just rename it with the command
Expand|Select|Wrap|Line Numbers
  1. mv /etc/.innittab.swp /etc/.innittab.swp_
and try editing your file again. It should work now. If it does, you can remove that old swap file /etc/innittab.swp_.

Greetings,
Nepomuk
Reply