This question already has an answer here:
- $ (prompt) in command line instructions 5 answers
I've been wondering about this for years, but never questioned it as far that I would ask this in public. I often come across websites that, for instance, explain the installation of a software in the command-line. What I don't get is why some keep the $-sign in their examples.
$ npm install -g some-package $ gulp make
This, of course, makes it difficult to copy&paste the given example. Is this:
- pure laziness, where the author copies from this own shell?
- an intentional way to prevent copy & paste, because the author finds the read should understand what he does
- something else (explanation please)