O'Reilly logo

Practical UNIX by Steve Moritsugu - DTR Business Systems

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What to Do When Your Session Seems to Be Hung

If you were in vi, it is possible that you are still in insert mode. In that case, all commands you type will echo to the screen but won’t execute. Press the Esc key to terminate insert mode. See if you can now use normal vi commands to check your file, and then save and exit, or exit without saving your changes. If that doesn’t solve the problem, go on to the next idea.

If you were in a pager program, input would echo to the screen but not be acted on. Press the Q key and then press the Enter key to see if that terminates the pager program and takes you back to the shell prompt. If that doesn’t solve the problem, go on to the next idea.

Try aborting whatever command you’re in. Press Ctrl+C, Delete, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required