Sunday, April 27, 2008

VI editior show garbage values

Sometimes, while working in vi editior you press “Ctrl+zz” instead of “Shift+zz” to save and exit. By doing this,VI editior immediately stop and exit. This mistake will make a garbage file with “swp” extension. And you file will be shown as corrupted or not shown in simple “ls” command. To resolve this, first check the hidden file list, there you will a file something like “.examplefile.swp”
]#ls –a
Just remove the files with swp extension and your problem solved
]#rm *.swp

No comments: