Raspberry Pi_Eng_08.2.2 Specifying Default Shell Program

8.2.2 Specifying Default Shell Program

There are various Shell programs available in Linux, and other Shell programs may be provided depending on the distribution. If you have other Shell programs you need, you can also use the Shell program.

On Linux, information about the Shell program currently installed on the system is stored in the “/etc/shells” file. If you check the information just like below, you can see that you can use various Shell programs. One of these several Shell programs installed in the system is specified as the Shell program used by default in the system.

Raspberry Pi_Eng_08.2.1 Shell and BASH (Bourne Again Shell)

8.2 Shell Program

8.2.1 Shell and BASH (Bourne Again Shell)

When we execute a command in the Terminal program, the Shell program accepts and interprets the command internally, instructs the system kernel to process it, and when processing is complete, it receives the result from the kernel and returns it to the Terminal program. Since the Shell is between the Terminal and system kernels, and handles all requests that the Terminal program requires, the Terminal program does not need to know anything about the system kernel. It is called a Shell in the sense that it serves to provide the necessary services to external Terminals that needs to receive services from the kernel while enclosing the system kernel as if the clamShell surrounds the contents.

Raspberry Pi_Eng_08.1.3 Working on Terminal Screen

8.1.3 Working on Terminal Screen

Next, let’s see exactly where the current position is on the Terminal screen. If you want to know the current directory location on Linux, use “pwd” command.

pi@raspberrypi ~ $ pwd

/home/pi

The above example shows that when you run the “pwd” command, it tells that “/home/pi” is the current directory location. “~” is displayed on the screen, but in reality, it means “/home/pi”. The current directory location specified in the home directory for the first time will be changed as user move the user’s working directory to another directory. Then, the position displayed on the screen is changed accordingly.

Raspberry Pi_Eng_08.1.2 Configuration of Terminal Screen

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.

Raspberry Pi_Eng_08.1.1 How to Start Terminal Program

8.1 Terminal program

8.1.1 How to Start Terminal Program

When you issue commands to the system to do the desired work on the Raspberry Pi system, you uses the Terminal screen. Although the Raspberry Pi system supports the window and can do some work in the window, most work still needs to be done manually by typing the command on the Terminal program screen.

There are several ways to start a Terminal program on the Raspberry Pi system. You can start the Terminal program from the local console, start the Terminal program from the remote connection, or start the Terminal program from the window.

Raspberry Pi_Eng_08.0 Chapter 8 Terminal and Shell Program

Chapter 8 Terminal and Shell Program

Chapter’s Main Topics

When you issue a command to the system to do desired work on the Raspberry Pi system, in most cases, you use the Shell command on the Terminal screen. This chapter describes how to use the Terminal program and the basic method to use the Shell command.

It includes descriptions on the following topics:
■ Terminal program

■ Shell program

Raspberry Pi_Eng_07.9 Shutdown

7.9 Shutdown

[Shutdown] menu provides the ability to shut down the system, reboot the sysem, logout from the current user account and change to a new user.

When you press [Shutdown] in [Menu], the popup screen as follows appears. When the user selects a desired item, the corresponding operation is executed.

Raspberry Pi_Eng_07.8 Run

7.8 Run

[Run] menu provides the ability to direct commands to the system without using the menu in the window, clicking the icon, or using the Shell Terminal screen.

● Execution screen

When you execute this menu, a pop-up screen will appear, allowing you to enter commands on the screen as shown below. Here, when the user inputs a desired command to be processed and presses the [OK] button, the command is executed.

Raspberry Pi_Eng_07.7.3 Main Menu Editor

7.7.3 Main Menu Editor

This program can define a list of programs that can be run directly from the window’s menu.

If Application Menu Menu à Preference à Main Menu Editor is executed, a pop-up screen to configure setting appears.

First, if the [Applications] menu on the left side of the screen is selected, the list of menus available at the top level appears on the right. Here you can select the desired menu and adjust what you need. Then, when you select the top menu again under [Applications] on the left side of the screen, a submenu list below it appears on the right. Here again, you can select the desired menu and adjust the necessary content.

Raspberry Pi_Eng_07.7.2 Theme and Appearance Settings

7.7.2 Theme and Appearance Settings

This program defines the properties of the items inside the window. It can define the contents of various items such as desktop screen and icons.

If you run Application Menu Menu → Preferences → Theme and Appearance Settings, the screen as follows for settings appears.