Hi I am a new unix user and I have been stuck in the terminal in this mode: '>' I accidentally pressed ls` instead of ls and suddenly it went to '>' this mode. I just would like to ask how to exit from that mode? Thanks!
If you can type commands, but nothing happens when you press RETURN, try pressing LINE FEED or typing CTRL-J. If this works, your terminal needs to be reset to fix the RETURN key. Some systems have a reset command that you can run by typing CTRL-J reset CTRL-J.
Here are various ways to deal with a frozen Linux system. 1. Kill an unresponsive program with xkill 2. Revive a frozen Linux system with virtual consoles (TTY) 3. When everything else fails, talk with the Kernel using SysReq
Table of Contents 1 Kill an unresponsive program with xkill#N#If you are using a Linux desktop, your first step should be an attempt to use... 2 Revive a frozen Linux system with virtual consoles (TTY)#N#Sometimes, you will not be so lucky, the system may seem... 3 When everything else fails, talk with the Kernel using SysReq More ...
As the others have pointed out, any command you type that is considered "unfinished" by the shell, such as unpaired quotes or keyword blocks (if..fi, for..done, etc.), results in a new line being provided for you to continue on. Either complete the command as it expects or crtl+c to terminate it.
If you are using a Linux desktop, your first step should be an attempt to use your window manager’s execute command (alt+f2 in Ubuntu) feature. If you are lucky, it will popup sooner then later. Then you can execute xkill and point the cursor at the defunct window and click it away.
You escape by doing this - ctrl + C.
Or, if you are using a Mac, then - control + C.
If the above did not work close the tick ` then hit enter.
You can try this shortcut CRTL+Z or CRTL+Q
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With