![](https://seccdn.libravatar.org/avatar/861b5545c111d2257fa12e533e723110.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Sunday 2005-10-16 at 06:33 -0700, Randall R Schulz wrote:
I tried using vi not too long ago and couldn't exit the damn thing once I fired it up :-). I had to reboot to get out of it. So I decided to stick with pico which even I can work.
That's far more drastic an action that is ever required in such a situation. There are myriad ways to deal with a hung application (equivalently, one you cannot figure out how to exit!).
Yeap... it happened to me as well. I had to kill it, then open "man vi" till I found the exit command, then try again.
If you're running in a GUI environment, create a new terminal window (in the same way you created the one in which the program you cannot escape is running). Then use this command to find the process ID of the command:
And if you are in text mode, switch to the next console with [ctrl][alt][F1..F6], find the pid of vi, and kill it. And if you are in remote using telnet or ssh, simply open another session and use the new one to kill vi. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDUl2ltTMYHG2NR9URAhsTAJ9fDtxZF4s6h56ToOJrmQW2gLWFbACaAyi8 5i5rkJ/l2e8ib2fPBNdW1lg= =LPmD -----END PGP SIGNATURE-----