Recovering a file after a system crash

Suppose the system fails while you are editing a file! You can recover the file when you next log on to the system again by using the -r option to the vi command. For example:

   vi -r help.xdh

This restores the vi buffer for the file help.xdhto exactly the state it was in immediately before the system failed.

You can continue to edit the file or write the contents of the buffer to the file.


[Home] [Search] [Index]