Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Today I happened to press ' after ls
So the command is ls'

After I issued this command: enter image description here

[edit]Seems the image can't display properly

> ls'
quote> ls'
zsh: command not found: ls\nls

Can someone tell me, what is the ls quote thing?

share|improve this question
In the future, it's helpful to only screenshot the relevant portions. As it is, the text can't be read without opening the image in a new window and zooming in. – Patrick Apr 13 '14 at 3:57
@Patrick Sure, thanks for your suggestion. – octref Apr 13 '14 at 4:04
up vote 3 down vote accepted

Since you opened a quotation ' and pressed enter, the shell is wanting you to close the quote. The quote> prompt is simply a visual indication of such.

This is so that you can pass multi-line arguments to programs.

For example:

$ echo 'hi
quote> there'


Since you typed ls'Enterls'Enter, this is the equivalent to trying to run a command called ls\nls (a command with a newline character in the middle of it), which doesn't exist and so the shell gave you an error.

share|improve this answer
Thanks, didn't now that. – octref Apr 13 '14 at 4:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.