Solved

Linux Terminal Stuck in > Mode

Posted on 2010-11-10
4
1,148 Views
Last Modified: 2012-05-10
I new to Linux. Opened up Terminal and accidentally typed the apostrophe (') character and pressed Enter and now my command line is stuck w/ a ">" prompt.  I can't get out of it other than closing the entire Terminal session.

What mode is that, what is it used for, and how can I exit out of it to get back to a normal $ prompt?
0
Comment
Question by:anuneznyc
4 Comments
 
LVL 9

Accepted Solution

by:
avilov earned 50 total points
ID: 34102920
ctrl+c works form me
0
 
LVL 6

Assisted Solution

by:brb6708
brb6708 earned 50 total points
ID: 34103008
you started a variable using apostrophe and you have to end it again

for example :

echo 'my multiword variable'


So simply enter another '  and hit return; probably you'll get an error message but after that you can try on.
0
 
LVL 2

Expert Comment

by:LinuxBugs
ID: 34103017
Hi.. ctrl+S is for scroll lock and often lInux console gets locked when you accidentally press these keys. You could release it by pressing ctrl+Q

0
 

Author Closing Comment

by:anuneznyc
ID: 34103676
These both worked. Thanks!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

3 Experts available now in Live!

Get 1:1 Help Now