What does the $ mean in Linux?

As a long time Linux user, you aren't asking yourself the same kind of questions a newbie is going to stumble upon. Obviously. One of these questions reached me via a friend who is just starting out with Linux. He was wondering: "What does the $ mean?"

Here is what I replied:

$ refers to bash or any command-line, simple as that. If you see a command, it is often written as

$ sudo apt-get update

The $ indicates that this is a command to run instead of an output. Output will be annotated without the dollar-sign.

On the topic of running commands two things to consider:

With this, Welcome to Linux :)

🙏🙏🙏

Since you've made it this far, sharing this article on your favorite social media network would be highly appreciated 💖! For feedback, please ping me on Twitter.

Published