Understanding the Prompt
When you log in to your Raspberry Pi, you see a prompt that looks like this, with a cursor beside it ready for you to enter your command:
pi@raspberrypi ~ $
At first glance, that prompt can look quite foreign and unnecessarily complicated (why doesn’t it just say OK or Ready?), but it actually contains a lot of information. This is what the different bits mean:
: This is the name of the user who is logged in. Later in this chapter, we show you how to add different users to your Raspberry Pi, and if you log in as a different user, you see that user’s name here instead.
: This is the hostname of the machine, which is the name other computers might use to identify the machine when connecting to it.
: In Linux, people talk about organizing files in directories rather than folders, but it means the same thing. This part of the prompt tells you which directory you are looking at (the current working directory). The tilde symbol (a horizontal wiggly line) is shorthand for what is known as your home directory, and its presence in the prompt here shows that you’re currently working in that directory. As explained in Chapter 4, this is where you should ...