Search code examples
commanditerm

What " ' " does when written after any command in mac terminal?


I accidentally wrote ls' instead of ls for listing the files. And it shows the > option. later I checked with other commands like cd', all providing >. What this command is for?

Example:

user:~$ ls'
>
>
>
user:~$ cd'
>
>

Solution

  • You have started a string parameter after command. For example, you can pass multiline parameter this way. All typed data between '' will be treated as one parameter.