Recovering a file after a system crash

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] This site maintained by unixhelp@math.rutgers.edu
This page was last updated on September 05, 2006 at 10:29 am and is maintained by webmaster@math.rutgers.edu.
For questions regarding courses and/or special permission, please contact mclausen@math.rutgers.edu.
For questions or comments about this site, please contact help@math.rutgers.edu.
© 2012 Rutgers, The State University of New Jersey. All rights reserved.