Find the answer to your Linux question:
Results 1 to 5 of 5
so earlier my finger slipped and I accidental hit the wrong button (I typed in ls' please note the appostrophe.) this made some craziness happen in my terminal (example below) ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! LinuxZealot's Avatar
    Join Date
    Jul 2007
    Location
    beautiful Seattle Washington
    Posts
    34

    quick BASH question


    so earlier my finger slipped and I accidental hit the wrong button (I typed in ls' please note the appostrophe.) this made some craziness happen in my terminal (example below) that I was curious about and was wondering if anyone could help. so allow me to cut to the proverbial chase.

    cyrus@gizmotron:~$ ls'
    >
    >
    >
    >
    >
    >
    and I can't get out of this and back to the command prompt without starting a new terminal session. first of all, what have I come across, second of all how do I get out of it, and third of all, is this feature useful and if so how can I use it?

    I would be most utterly grateful for any light shed upon this subject
    thank you
    Last edited by LinuxZealot; 11-01-2007 at 10:57 AM. Reason: clarification

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,281
    You entered an unpaired quote. Bash assumes that quotes and brackets always come in pairs so it concluded that you hadn't finished typing in your command. The > is a continuation prompt, used whenever a command is to go over one line. Bash will go on prompting you for a continuation until you enter the second quote.
    "I'm just a little old lady; don't try to dazzle me with jargon!"
    www.hrussman.entadsl.com

  3. #3
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Or until you Ctrl-C

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined! LinuxZealot's Avatar
    Join Date
    Jul 2007
    Location
    beautiful Seattle Washington
    Posts
    34
    awesome, thank you verymuch

  6. #5
    Just Joined!
    Join Date
    May 2007
    Location
    Auburn, Washington
    Posts
    34
    Well if you ever have any more questions about bash, just refer to this guide:

    http://tldp.org/LDP/abs/html/abs-guide.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •