MYSYSAD.COM

Recover a File with vi After System Crash

· Shell & text · Files & disks

A few years ago, I was creating a maintenance script file for a database and experienced a system crash. As I recollect, the file had several hundred lines that were unsaved/modified, and the last thing I wanted to do was recover from an older copy. What did I do? Fortunately, I was able to use the "-r" option to recover the file.

# vi -r filename