Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This has annoyed me for years but I've never found a solution. Instead of pressing Esc then :x to save an exit from vi, I accidentally type a capital X and press Enter. The only way to continue is to allow encryption. Surely there's a cancel command at this point?

share|improve this question

You just have to enter an empty password twice. There will be no encryption.

share|improve this answer
Easy when you know! Thanks. – user5817 Mar 21 '11 at 9:05

Simpler: cancel the operation by pressing escape

By canceling, you are ensured that the program will not do something unexpected with the prompted (empty) passwords.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.