WEBVTT

00:00.710 --> 00:08.240
The default shell used in many Linux distributions is the neo-geo writes like this g.

00:08.270 --> 00:12.850
New here G and u.

00:12.890 --> 00:14.360
Bash shell.

00:14.750 --> 00:17.330
So this is the default shell of our Linux here.

00:17.450 --> 00:23.510
This section describes the basic features available in the bash shell, such as the Bash Manual, Tab

00:23.510 --> 00:27.080
Autocompletion and how to displays file contents.

00:27.080 --> 00:32.570
You will walk through how to work with Linux files and directories using the basic commands provided

00:32.570 --> 00:35.720
by the new Bash Shell.

00:36.170 --> 00:41.270
If you are already comfortable with the basics in the Linux environment, feel free to skip this section

00:41.270 --> 00:45.530
and continue with the next section to see more advanced commands.

00:45.560 --> 00:47.570
Let's start with the shell here.

00:48.110 --> 00:54.380
The new Bash Shell is a program that provides interactive access to the Linux system.

00:54.380 --> 01:00.090
It runs a regular program and is normally started whenever a user logs into terminal.

01:00.090 --> 01:09.300
So the shell that the system supports depends on your user ID configuration Here, actually let's delete

01:09.300 --> 01:09.510
it.

01:09.510 --> 01:13.800
So it depends on your user ID configuration.

01:14.750 --> 01:20.310
Uh, so the ATC passwd file here.

01:20.330 --> 01:21.110
Cat.

01:21.270 --> 01:21.590
Oops.

01:22.290 --> 01:27.500
Cat atc passwd here.

01:28.490 --> 01:34.130
Uh, this contains a list of all system users accounts, along with some basic configuration information

01:34.130 --> 01:35.330
about each user.

01:35.330 --> 01:42.140
So here's a sample entry from our Etsy passwd file.

01:42.140 --> 01:47.150
And as you can see, this is our user account that has the file name called Call.

01:47.990 --> 01:56.210
So each entry here has seven data fields with the fields separated by colons here.

01:56.210 --> 01:56.630
One.

01:56.630 --> 01:59.120
So this is one two.

01:59.760 --> 02:00.480
Three.

02:00.960 --> 02:01.980
Four.

02:02.220 --> 02:03.270
Five.

02:03.840 --> 02:05.940
Six and seven.

02:06.240 --> 02:10.500
So this each field separated by.

02:11.170 --> 02:13.000
Collins here, as you can see here.

02:13.810 --> 02:20.530
So the system uses the data in these fields against a specific features to the user for the user.

02:20.530 --> 02:24.610
So most of these entries are discussed in more detail in next sections.

02:24.610 --> 02:29.980
But for now, just pay attention to the last field which specifies here.

02:29.980 --> 02:33.640
Actually, let's make it like this so you can see it.

02:33.640 --> 02:35.020
More detail here.

02:40.080 --> 02:40.770
Here.

02:42.140 --> 02:47.360
So here, just pay attention to this last field here.

02:48.410 --> 02:52.150
Uh, so which specifies users shell program.

02:52.190 --> 02:57.920
So through this focus on the new bash shell, additional shells are weaved in this course.

02:57.920 --> 03:06.350
And in next lecture we will cover working with alternative shells such as dash and TXT here, so you

03:06.350 --> 03:07.670
will learn in next lecture.

03:07.670 --> 03:11.720
Also different types of shell applications and shells here.

03:12.620 --> 03:16.060
Uh, so in earlier here, this is the sample entry.

03:16.070 --> 03:24.680
The user typhoon here has been bash set as her default program here.

03:24.680 --> 03:26.960
The default, uh, program.

03:27.230 --> 03:28.580
So here.

03:29.520 --> 03:38.160
This means when typhoon logs into the Linux system, the bash system, this bash shell program is automatically

03:38.160 --> 03:38.670
started.

03:39.030 --> 03:45.660
So although the Bash Shell is program is started at login, whether a shell command line interface CLI

03:45.840 --> 03:50.280
command line interface is presented dependent on which login method is used.

03:50.280 --> 04:01.440
So if a virtual console terminal is used to log in the command line interface cli c l i prompt is automatically

04:01.440 --> 04:04.350
presented so and you can begin to type shell commands.

04:04.350 --> 04:10.140
However, if you log into the Linux system via graphical desktop environment, you need to start a graphical

04:10.140 --> 04:16.530
terminal emulator to access the Shell command line in command line.

04:18.100 --> 04:20.950
Interface, uh, prompt.

04:20.950 --> 04:24.370
And we also can use the, uh, shell prompt here.

04:24.370 --> 04:29.860
So after you start a terminal emulation package or log into the Linux virtual console, you can get

04:29.860 --> 04:33.820
access to the shell cli prompt.

04:34.570 --> 04:35.560
Uh, so.

04:36.720 --> 04:38.620
Uh, the prompt is your gateway to the shell.

04:38.640 --> 04:40.250
So this is the place where you.

04:40.650 --> 04:42.060
You enter shell commands.

04:42.060 --> 04:46.800
So the default prompt symbol for the bash shell is the dollar sign here.

04:46.800 --> 04:48.990
And this symbol is actually changed like this.

04:48.990 --> 04:51.570
And as you can see here, this is the dollar sign.

04:51.690 --> 05:01.590
So this symbol here, let's actually here this symbol indicates that the shell is waiting for you to

05:01.590 --> 05:02.070
enter.

05:02.070 --> 05:08.640
Text The different Linux distributions use different formats for the prompt in Ubuntu Linux system.

05:08.640 --> 05:11.850
The shell prompt should be look like this.

05:11.940 --> 05:13.710
And here.

05:15.730 --> 05:16.870
And in Santos.

05:16.870 --> 05:21.370
However, this is in the ubuntu here ubuntu.

05:24.090 --> 05:31.440
And in however in the sent us the default shell writing style will be like this.

05:32.490 --> 05:33.750
And dollar sign.

05:36.010 --> 05:38.500
This is in the sand.

05:39.420 --> 05:40.010
Oz.

05:40.050 --> 05:41.160
Oz here.

05:42.770 --> 05:50.150
So besides acting as your access point to the shell, the prompt can provide additional helpful information.

05:50.270 --> 05:57.230
Here in this example, the current user ID named Typhoon here.

05:58.410 --> 05:59.710
Uh, is shown in the prompt.

05:59.730 --> 06:01.860
Also, the name of the system is shown here.

06:01.860 --> 06:03.800
As you can see in this case, it's Oxley.

06:03.810 --> 06:05.090
This is our host name.

06:05.100 --> 06:09.990
So you will learn later in this section about additional items shown in the prompt here.

06:09.990 --> 06:15.520
So if you are new to the command line interface, keep in mind that after you type in a shell command

06:15.540 --> 06:22.650
prompt, you need to press the enter key to for the shell to act upon your command.

06:22.650 --> 06:32.760
For example, if I write like LHS here and I need to press enter to execute my command line interface

06:32.760 --> 06:33.390
command.

06:33.390 --> 06:39.270
So think of the Shell command line interface as a helpmate, assisting you with your Linux system,

06:39.270 --> 06:45.120
giving you helpful insights and letting you know when the shell is ready for new commands as another

06:45.120 --> 06:48.630
helpful item in the shell is the Bash manual.

06:48.630 --> 06:52.080
In the next lecture, you will learn about the Bash manual in Linux.

06:52.080 --> 06:54.090
So I'm waiting you in the next lecture.
