WEBVTT

00:00.700 --> 00:02.219
All right. Hello and welcome to

00:02.290 --> 00:03.858
Command Line Basics Command Line

00:04.150 --> 00:05.230
Survival Part two.

00:05.380 --> 00:06.850
I'm Christopher Haler and this

00:07.450 --> 00:08.859
is the second part in the command

00:08.860 --> 00:10.134
line survival module where

00:10.810 --> 00:11.709
you're going to learn about

00:11.710 --> 00:12.939
different tips and techniques to

00:12.940 --> 00:14.809
help you regain control

00:14.810 --> 00:16.839
of the terminal and become

00:16.840 --> 00:18.310
effective at what you do while

00:18.730 --> 00:19.730
you're on the command line.

00:20.770 --> 00:22.419
So our learning objectives for this

00:22.420 --> 00:24.220
module, we are going to customize

00:24.230 --> 00:25.798
the SEAL environment, understand

00:26.350 --> 00:28.359
various control functions and learn

00:28.360 --> 00:29.360
how to clear the screen.

00:30.730 --> 00:32.679
All right, pretty sesemann, so you

00:32.680 --> 00:34.179
enter a command and your screen

00:34.180 --> 00:35.549
freezes. What do you do?

00:36.070 --> 00:37.959
Do you a press control, see

00:38.500 --> 00:40.029
the hold down enter,

00:40.450 --> 00:42.609
see press control tab

00:42.850 --> 00:44.510
or D.. Just let it finish.

00:46.230 --> 00:48.200
If you said a controversy,

00:48.360 --> 00:50.039
you're correct, the control

00:50.490 --> 00:51.666
key combination during a

00:52.350 --> 00:53.999
running process will interrupt the

00:54.000 --> 00:55.859
process and allow you to regain

00:55.860 --> 00:57.690
control of the terminal.

00:58.380 --> 01:00.359
So holding down enter isn't going

01:00.360 --> 01:01.487
to do much if a command

01:02.460 --> 01:03.419
is running.

01:03.420 --> 01:05.519
Control tab is not a valid

01:05.730 --> 01:07.140
sequence that does anything.

01:07.810 --> 01:09.719
And while d just

01:09.720 --> 01:11.288
letting it finish, that could be

01:11.730 --> 01:13.140
a valid answer.

01:14.070 --> 01:15.736
Some, if you miss type of command,

01:16.140 --> 01:17.757
it could run for hours before you

01:17.940 --> 01:19.620
regain control of your terminal

01:20.160 --> 01:21.719
and you're going to run into this a

01:21.720 --> 01:23.159
lot as you get more comfortable with

01:23.160 --> 01:24.659
the command line where you will

01:24.660 --> 01:26.099
accidentally miss type of command

01:26.490 --> 01:27.659
and you're going to need to

01:27.660 --> 01:29.159
interrupt it or stop it from

01:29.160 --> 01:30.160
completing.

01:31.730 --> 01:33.459
All right, so customized the Seelie

01:33.470 --> 01:35.419
environment, so we

01:35.420 --> 01:36.890
have the ability to change the

01:37.130 --> 01:39.170
screen size colors and text

01:39.590 --> 01:41.719
so that it can be more accessible

01:41.720 --> 01:43.730
to us and become easier

01:44.930 --> 01:45.739
for windows.

01:45.740 --> 01:47.989
There is a property's

01:48.380 --> 01:49.760
window in the top left corner.

01:49.940 --> 01:51.619
If you click on that, it will bring

01:51.620 --> 01:53.179
down the property's window and we

01:53.180 --> 01:54.180
can change that out.

01:54.440 --> 01:56.170
Linux. It's kind of similar, just

01:56.180 --> 01:57.180
editing preferences.

01:57.680 --> 01:58.729
All right. So let me show you how to

01:58.730 --> 01:59.730
do that.

02:00.380 --> 02:02.269
So this is our command prompt

02:02.270 --> 02:03.739
that we've opened up in a previous

02:03.740 --> 02:04.579
module.

02:04.580 --> 02:06.499
I'm going to click up here in

02:06.500 --> 02:08.270
the top left and

02:08.389 --> 02:09.739
click on properties

02:10.889 --> 02:12.079
right now. From here, we can change

02:12.080 --> 02:13.080
our font size.

02:13.560 --> 02:15.009
Let's say we want even bigger.

02:15.020 --> 02:16.520
So it'll be a little easier to read.

02:17.630 --> 02:19.369
And we can also change the different

02:19.370 --> 02:21.259
type of font

02:21.260 --> 02:22.099
as well.

02:22.100 --> 02:23.717
And so it looks very fancy and we

02:23.780 --> 02:24.780
look like

02:25.610 --> 02:27.349
an elite hacker, right.

02:27.900 --> 02:29.500
We can change the size.

02:29.810 --> 02:31.159
We can also change the colors as

02:31.160 --> 02:32.160
well.

02:32.990 --> 02:34.429
All right. So let's go ahead and

02:34.430 --> 02:35.680
enter and look at that.

02:35.720 --> 02:36.770
We've got a little bit of change.

02:37.320 --> 02:38.320
Looks pretty neat.

02:39.290 --> 02:40.939
And if we want to change back,

02:41.390 --> 02:43.400
we can just go right on back,

02:44.150 --> 02:45.150
check it out.

02:45.410 --> 02:46.488
All right. And now for

02:47.240 --> 02:49.009
Linux, we are going to open up our

02:49.010 --> 02:50.010
terminal.

02:51.720 --> 02:53.940
Press edit preferences,

02:54.570 --> 02:56.187
and it's a similar kind of window

02:56.280 --> 02:58.679
here where we can go into

02:58.770 --> 03:00.210
change the text size

03:01.860 --> 03:03.183
spacing, we can also change

03:03.840 --> 03:06.089
the colors, let's say

03:06.090 --> 03:07.090
red.

03:09.900 --> 03:10.900
All right.

03:14.690 --> 03:16.699
Oh, I'm not

03:16.700 --> 03:17.770
sure what I want.

03:23.880 --> 03:24.880
All right.

03:26.150 --> 03:27.889
So we can change the terminal size,

03:28.090 --> 03:29.629
we can change the font here.

03:31.000 --> 03:32.000
Select and close and

03:32.830 --> 03:33.759
look at that, we've got a different

03:33.760 --> 03:34.760
font already,

03:35.920 --> 03:38.169
and so it's very customizable

03:38.170 --> 03:39.729
to what you need to be able to do.

03:40.040 --> 03:41.740
So keep that in mind while you're

03:41.950 --> 03:43.169
using the terminal.

03:43.180 --> 03:45.039
And for some people, it can become

03:45.190 --> 03:45.999
very tiny.

03:46.000 --> 03:47.830
The beginning text the terminal

03:48.340 --> 03:50.229
so that that is able to be changed

03:50.230 --> 03:51.280
for your needs.

03:52.510 --> 03:54.069
All right. Control keys so we get

03:54.070 --> 03:55.629
control. See, as you learned in the

03:55.630 --> 03:57.296
previous estimate, this interrupts

03:57.490 --> 03:59.139
a running process and allows you to

03:59.140 --> 04:00.999
regain control of the terminal

04:01.570 --> 04:03.610
controls is a similar

04:04.720 --> 04:06.699
key combination where it will

04:06.700 --> 04:08.319
pause the running process.

04:08.980 --> 04:10.107
And with Linux, you can

04:10.990 --> 04:12.264
actually restart a running

04:13.210 --> 04:15.639
process that was paused with the EFG

04:15.940 --> 04:17.820
or foreground command.

04:18.279 --> 04:20.349
And so that's a very

04:20.350 --> 04:22.209
useful way to kind of circle

04:22.210 --> 04:23.582
back and get back to another

04:24.100 --> 04:26.199
command that you pause before

04:26.650 --> 04:28.660
and control clears the screen.

04:29.410 --> 04:30.819
All right. So let me show you that

04:30.820 --> 04:31.779
really quick.

04:31.780 --> 04:33.879
We will open up our Linux terminal

04:33.880 --> 04:34.880
again that we have up.

04:35.530 --> 04:37.360
So now let's say

04:37.600 --> 04:38.610
the top command.

04:38.650 --> 04:40.689
This will show us the top running

04:40.690 --> 04:42.160
processes that are on my Linux

04:42.580 --> 04:43.580
machine right now.

04:43.990 --> 04:45.699
So as you can see, it's taken over

04:45.700 --> 04:46.700
the terminal.

04:47.290 --> 04:48.613
The normal way to quit this

04:48.910 --> 04:50.650
application is to push the

04:50.950 --> 04:52.714
button, and that will bring us right

04:52.720 --> 04:53.499
back.

04:53.500 --> 04:54.823
And I can push the up arrow

04:55.360 --> 04:56.928
key to bring my previous command

04:57.250 --> 04:58.250
up and hit enter.

04:58.930 --> 05:00.204
And we are back in the top

05:00.310 --> 05:01.310
application now.

05:02.230 --> 05:03.749
Say the Kyuki wasn't working or

05:04.240 --> 05:06.310
I didn't know that the Kyuki quit

05:06.400 --> 05:07.400
from top.

05:07.660 --> 05:09.220
If I press control, see,

05:09.940 --> 05:11.557
it will interrupt the process and

05:11.800 --> 05:13.079
bring me back to the terminal.

05:13.480 --> 05:14.480
Pretty cool.

05:14.740 --> 05:16.210
Now I'm going to bring this up

05:16.420 --> 05:17.420
again.

05:17.830 --> 05:19.179
So we have our top application

05:19.180 --> 05:20.699
running. Now I'm going to press

05:21.040 --> 05:22.240
control Z

05:23.200 --> 05:25.029
and now see down here at the bottom,

05:25.030 --> 05:26.619
it says stopped

05:26.860 --> 05:27.860
right here.

05:28.240 --> 05:30.189
So and we have the number one

05:30.190 --> 05:32.069
also. That is the process number.

05:32.290 --> 05:34.509
So if we type FG space

05:34.720 --> 05:35.720
one hit enter, we

05:36.580 --> 05:38.050
are brought directly back into

05:38.560 --> 05:40.519
our Pollos process that

05:40.540 --> 05:41.839
we paused with the controls.

05:42.400 --> 05:44.110
So this can be very useful for

05:44.380 --> 05:46.540
a variety of different applications.

05:48.100 --> 05:48.999
All right.

05:49.000 --> 05:50.679
And it's the same thing for

05:51.040 --> 05:52.510
the Windows desktop as well.

05:52.750 --> 05:54.839
Press control. See or control the.

05:58.650 --> 05:59.650
And control.

06:00.090 --> 06:01.217
Let me show you that it

06:01.980 --> 06:03.640
does not work for Windows, let's

06:03.660 --> 06:05.228
press control on Linux and check

06:05.670 --> 06:06.539
that out.

06:06.540 --> 06:07.961
So as far as for Windows, for

06:08.430 --> 06:09.929
cleaning the screen, we can type B,

06:09.930 --> 06:11.550
C. S come in

06:12.010 --> 06:13.169
and are cleared.

06:13.170 --> 06:14.290
Looks nice and pretty now.

06:14.490 --> 06:15.929
So keep that in mind.

06:17.460 --> 06:18.460
All right.

06:19.260 --> 06:21.149
So post assessment, what

06:21.150 --> 06:23.110
command restarts Apple's command?

06:23.160 --> 06:25.890
Is it a restart BFG

06:26.250 --> 06:28.559
C front or D unpause?

06:30.120 --> 06:31.247
If you said BFG, you're

06:31.950 --> 06:34.229
correct. That is the foreground

06:34.230 --> 06:36.239
command and it will bring a pause

06:36.240 --> 06:38.399
command back to the

06:38.400 --> 06:39.869
front of the terminal so it can be

06:39.870 --> 06:40.870
interacted with.

06:41.250 --> 06:43.319
So a restart if you use

06:43.320 --> 06:45.329
this, it will actually restart

06:45.330 --> 06:46.680
a Linux machine

06:47.370 --> 06:49.019
as in power cycle.

06:49.020 --> 06:50.020
It C

06:51.060 --> 06:52.579
front is not a real command and

06:53.430 --> 06:54.753
the it's not a real command

06:55.410 --> 06:56.410
as well.

06:57.230 --> 06:58.709
All right. So video summary.

06:58.830 --> 07:00.239
In this video, we learned how to

07:00.240 --> 07:01.769
customize the cloud environment

07:02.220 --> 07:03.839
and understand various control

07:03.840 --> 07:05.114
functions and how to learn

07:05.670 --> 07:06.980
how to clear the screen.

07:07.320 --> 07:09.089
So I hope to see you in the next

07:09.090 --> 07:09.450
video.

