Hello, everyone.
Before we get on to module three, there's something important I wanted to talk about, and that is
command prompt and how we could get a command prompt back if it gets stuck.
So what is a command prompt?
Command prompt also referred to simply as a prompt is a short text at the start of the command line,
followed by a prompt symbol on a command line interface.
So if you have your Linux machine and you have your GUI and you open up your terminal, it will look
like this.
And if you notice and this terminal window, you have this route at my first Linux VM and then close
brackets and hash sign.
So the first part of this entire command prompt is the username route.
The second part is the hostname and the third part is the prompt symbol.
Now, depending on which system you are logged in, as in Linux, most of the Linux systems will show
up the command prompt like this.
But maybe there are certain Linux systems that are configured differently where you will not see username
or hostname or a different prompt symbol.
But by default, when you install Linux, this is how the prompt will look like.
When you see the symbol, the symbol, you see the hash tag.
Hash tag means that you are logged in as root.
If you're logged in any one else but root, then you will see a dollar symbol again.
This can be reconfigured or you could change the symbol as well, which is which can be done at your
profile level anyway.
So you have the prompt.
Now, if you get stuck at certain command and you don't get your pachucos, simply type control see
on your terminal to get your problem back.
Now, let me quickly go into my Linux machine and I will.
Show you how the prom looks like, so this is the prompt, if you are logged into your Linux console,
you install that, you logged in, you right click on your desktop.
It will open up the terminal again.
This part here looks like it's a user name and this is the hostname.
You can also get the user name by typing who I am.
I assure you, you are logged in as route.
You could type hostname and it'll show you the name of your machine.
Again, this is something that I will definitely cover in the later lectures, but I'm just showing
how the program looks like.
And as since I am rude, I have a default prompt of hashtag now getting the prompt back, meaning every
time you need to run the command, you have to have this prompt back.
So if you do not have the prompt back, you cannot run a command.
So if you're stuck at a certain point, let's say if you are trying to run a command, a command, that's
a cat again, which was something we'll cover later.
You're doing a cat and you're doing a and you just accidentally hit enter.
You see, it's your command is stuck.
Now, every anything you type here is now going to work.
You have to get that back to get that prompt back.
You have to type control.
See, just like that.
If you're running another command, let's say top and it is giving you some information on the screen
at real time.
If you wanted to get out of this and get your prompt back type control, see again, just like that,
if you want to use another command, let's say else minus L to let's say pipe it.
And you see it's giving you this redirect sign thing.
It means it's also stuck.
That means your command was not fully executed.
So in order to get your job back again, type control.
See, so this lecture is all about command prompt.
If you are stuck anywhere and you do not have your prompt back type control, see to get your problem
back.