Stuck on > prompt in terminal after bad bash command, Ubuntu 10.10
11,422
Solution 1
Bash waits for you to terminate the quoted string with another single quote character. So you can either do 'Enter and exit vi
in a normal way, or use Ctrl + C to cancel the command.
">"
is the default value of the $PS2
variable, a.k.a secondary prompt string.
Solution 2
How about Ctrl + D, or just ' and Enter (and then :q to exit vi
).
Solution 3
Ctrl+ \
will send a SIGQUIT signal. Try that if Ctrl+C (sends a SIGINT signal) does not work.
Author by
TBF
Updated on June 05, 2022Comments
-
TBF almost 2 years
After typing a bad command in terminal like below, the prompt does not exit. Tried Ctrl+c, Ctrl+z, Ctrl+q. Nothing helps to exit > prompt.
[[email protected]|eco9]# vi /etc/lru.cfg' > > vi /etc/lru.cfg > > >