All right. Hello and welcome to
Command Line Basics Command Line
Survival Part two.
I'm Christopher Haler and this
is the second part in the command
line survival module where
you're going to learn about
different tips and techniques to
help you regain control
of the terminal and become
effective at what you do while
you're on the command line.
So our learning objectives for this
module, we are going to customize
the SEAL environment, understand
various control functions and learn
how to clear the screen.
All right, pretty sesemann, so you
enter a command and your screen
freezes. What do you do?
Do you a press control, see
the hold down enter,
see press control tab
or D.. Just let it finish.
If you said a controversy,
you're correct, the control
key combination during a
running process will interrupt the
process and allow you to regain
control of the terminal.
So holding down enter isn't going
to do much if a command
is running.
Control tab is not a valid
sequence that does anything.
And while d just
letting it finish, that could be
a valid answer.
Some, if you miss type of command,
it could run for hours before you
regain control of your terminal
and you're going to run into this a
lot as you get more comfortable with
the command line where you will
accidentally miss type of command
and you're going to need to
interrupt it or stop it from
completing.
All right, so customized the Seelie
environment, so we
have the ability to change the
screen size colors and text
so that it can be more accessible
to us and become easier
for windows.
There is a property's
window in the top left corner.
If you click on that, it will bring
down the property's window and we
can change that out.
Linux. It's kind of similar, just
editing preferences.
All right. So let me show you how to
do that.
So this is our command prompt
that we've opened up in a previous
module.
I'm going to click up here in
the top left and
click on properties
right now. From here, we can change
our font size.
Let's say we want even bigger.
So it'll be a little easier to read.
And we can also change the different
type of font
as well.
And so it looks very fancy and we
look like
an elite hacker, right.
We can change the size.
We can also change the colors as
well.
All right. So let's go ahead and
enter and look at that.
We've got a little bit of change.
Looks pretty neat.
And if we want to change back,
we can just go right on back,
check it out.
All right. And now for
Linux, we are going to open up our
terminal.
Press edit preferences,
and it's a similar kind of window
here where we can go into
change the text size
spacing, we can also change
the colors, let's say
red.
All right.
Oh, I'm not
sure what I want.
All right.
So we can change the terminal size,
we can change the font here.
Select and close and
look at that, we've got a different
font already,
and so it's very customizable
to what you need to be able to do.
So keep that in mind while you're
using the terminal.
And for some people, it can become
very tiny.
The beginning text the terminal
so that that is able to be changed
for your needs.
All right. Control keys so we get
control. See, as you learned in the
previous estimate, this interrupts
a running process and allows you to
regain control of the terminal
controls is a similar
key combination where it will
pause the running process.
And with Linux, you can
actually restart a running
process that was paused with the EFG
or foreground command.
And so that's a very
useful way to kind of circle
back and get back to another
command that you pause before
and control clears the screen.
All right. So let me show you that
really quick.
We will open up our Linux terminal
again that we have up.
So now let's say
the top command.
This will show us the top running
processes that are on my Linux
machine right now.
So as you can see, it's taken over
the terminal.
The normal way to quit this
application is to push the
button, and that will bring us right
back.
And I can push the up arrow
key to bring my previous command
up and hit enter.
And we are back in the top
application now.
Say the Kyuki wasn't working or
I didn't know that the Kyuki quit
from top.
If I press control, see,
it will interrupt the process and
bring me back to the terminal.
Pretty cool.
Now I'm going to bring this up
again.
So we have our top application
running. Now I'm going to press
control Z
and now see down here at the bottom,
it says stopped
right here.
So and we have the number one
also. That is the process number.
So if we type FG space
one hit enter, we
are brought directly back into
our Pollos process that
we paused with the controls.
So this can be very useful for
a variety of different applications.
All right.
And it's the same thing for
the Windows desktop as well.
Press control. See or control the.
And control.
Let me show you that it
does not work for Windows, let's
press control on Linux and check
that out.
So as far as for Windows, for
cleaning the screen, we can type B,
C. S come in
and are cleared.
Looks nice and pretty now.
So keep that in mind.
All right.
So post assessment, what
command restarts Apple's command?
Is it a restart BFG
C front or D unpause?
If you said BFG, you're
correct. That is the foreground
command and it will bring a pause
command back to the
front of the terminal so it can be
interacted with.
So a restart if you use
this, it will actually restart
a Linux machine
as in power cycle.
It C
front is not a real command and
the it's not a real command
as well.
All right. So video summary.
In this video, we learned how to
customize the cloud environment
and understand various control
functions and how to learn
how to clear the screen.
So I hope to see you in the next
video.