Raspberry Pi_Eng_08.1.2 Configuration of Terminal Screen

Published Book on Amazon

All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 1
All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 2

출판된 한글판 도서

최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (상)
최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (하)

Original Book Contents

8.1.2     Configuration of Terminal Screen


The Terminal screen provided in the Pi system has certain rules. First, let's look at the information displayed on the Terminal screen.


If you connect to the system at first and log on to "pi" account, the parts as below appears on the Terminal screen.


Figure 8‑1 Command prompt of Terminal screen


This is called a command prompt, which is called a prompt in the sense that it tells the user something when executing the command. Here, the parts where the information is displayed are divided one by one as follows:

    Logon user account             -- pi               

    Belonging                         -- @               -- Means "at"

    Hostname                         -- raspberrypi   

    Current directory location      -- ~                -- Means "/home/pi"

    User execution grade            -- $                 -- Normal user grade

    Execution command            -- Command entered by the user for actual execution


The first thing to look at is the logon user account. The user account displayed here is the user account that connected to the Raspberry Pi system and logged on for the first time. Currently it is marked "pi", which means that current user account "pi" have logged on to the system. If the user named "guser001" has logged on, its name will be displayed.


The next displayed one is @. This means "at", which has the role to link between the user account and the hostname and indicates which hostname the user account in front belongs to. "Pi@raspberrypi" indicates the "pi" user account on the "raspberrypi" computer.


Hostname is the name given to the computer itself, which is the name that other computers will use to refer to the current computer when communicating with other computers on the network. The Raspberry Pi system is named "raspberrypi" by default at the time it is installed. If you want to change it, you can specify it as a different name when you set the booting item. Refer to the descriptions of [9.9.2 Setting Hostname ] for details.


What is displayed next is the current directory location. The current directory location represents the directory location that the user is currently working on in the file system. Currently, "~" is displayed on the screen, which means the user's home directory. The first time you connect to the Terminal program, the home directory of the logon user account is automatically set to the current directory.


"~" (Tilde) is usually the symbol used to represent the logon user's home directory. Using "~" when executing a command at the Terminal always means doing something based on the home directory.