Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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 at 3:57
    
@Patrick Sure, thanks for your suggestion. –  octref Apr 13 at 4:04
add comment

1 Answer 1

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'

hi
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 at 4:04
add comment

Your Answer

 
discard

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.