Save yourself potential headaches by saving frequently. To save files in emacs (Figure 4.20), follow these steps.
✓ Tips
If you look around in your home directory (or whatever directory you’re working in) after experimenting with emacs, you’ll probably notice a slew of files with names ending in ~. Those are emacs backup files, created for your convenience and sanity. If you don’t need them, just delete them with rm –i *~. If you do need them, just use mv oopsie~ oopsie and you’re back in business.
If you want to save a file over an existing file, use , and then enter the existing filename to overwrite the original.