OK now we know a lot about what are the different type of shows.
How do we start a shell.
How do we get into different channels.
Well it's simple addas simply type shoaling meaning if you are in Bourne shell and you want to get into
just shell or C shell just type sh or just type C shell.
So without explaining you more in detail log in straight to my Linux machine and I'll show you how you
could switch from one shell to another.
Ok so I have this Linux machine.
And you notice that I have this gooey running in Linux inside the GUI.
I have this terminal so all the commands that I run from the terminal is actually a shell.
And that Shell is how do you find a shell you do at Go dollars 0.
And it tells you my shell is bash.
Now if I don't want to use this command line and you see in the back I have this directory called home
and I have this trash can.
So if I like to view the content of home what I do.
Double click.
So this environment right here as you see this environment is genome environment.
I remember I told you the genome is also a type of shell.
So this is another shell right here and this is a command line inside of the show.
So if I wanted to open this folder I am telling genome which is a desktop GUI to open up the folders
a double DoubleClick and it will open up the contents of that directory.
And these are all the directories that have these.
This is the file I have off of the directory if I want to go into another directory and in the fall
or if I wanted to open up this file I'll double click and genome.
Shell is interacting with the kernel in an operating system and telling it to open it up.
Now what if I do not have the school environment right.
So not everyone is a windows.
Not everyone wanting to get into windows they wanting to get in the command line.
So what do they do.
They.
So if I were to view the content of my home directory I'm sure you know let up put
I'm sure you know the output of PWT which means home.
I have salsa Now if I want to view the content of my directory I'd do mine as well.
And you see here is a list of all the directories that I have in my home directory.
So I did the same thing as I was doing here by double clicking it.
But right now I used the command ls.
So when I use a comment elex I actually am telling my bash shell to do this ls command for me.
Let's do clear and it will clear up my terminal.
Now if you wanted to see what other shell that you could change to you could just simply type sh.
And you hit sh you see yourself shell prompt changes and you can also verified by running echo dollar
0 and you'll see it is shell.
Now if you wanted to exit out of the shell to go back to your bash you type exit and if you want to
go to let's say seashells to just type C shell and you are in seashell to confirm you your shall you
do echo Dalia's 0 seashell.
You want to get out.
What do you get.
How do you do X.
So that's how you get out.
Now what other show did we learn.
Let's say if you wanted to start a corn shell s k s h hit enter it says bash Korn shell command not
found.
It's a similar command as you could use is a C shell No.
I want to use Korsh why I can not get into Korn shell maybe because I do not have Korn shell installed
in my computer.
And how do a verified simply do cat shells.
OK tell me do you see Korn shell in there.
No right.
Thats why I was not able to start that Korn shell shell actually.
So anyway so thats how you could switch around she'll start a new shell.
Again this is if you want to get into a different chul environment.
Now how does it relate to shell scripting the shell scripting that you want to learn.
Right that's right you probably are thinking well if you are creating a shell script let's say in Korn
shell and as you see right here I don't have Cloran chill that script is not going to run.
So you need to know your environment beforehand before you spend tons of number of hours and then realize
oh boy I dont have a court show and not even how to install or download a cordial anyway so thats about
changing the shells.