2.2 Command Line Survival Part 2
Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or
Already have an account? Sign In »

Video Transcription
00:00
aren't. Hello, and welcome to command line Basics Command line survival Part two. I'm Christopher Heller, and this is the second part in the command line survival module where you're gonna learn about different tips and techniques to help you regain control of the terminal. Ah, and become effective at what you do while you're on the command. What?
00:20
So our landing objectives for this module, we're going to customize the seal environment, understand various control functions and learn how to clear the screen.
00:30
All right, pretty Sussman. So you enter a command and your screen freezes. What do you do?
00:35
Do you a press control? C B? Hold down. Enter. See, Press control tab or D? Just let it finish.
00:46
If you said a control, see, you're correct the control, see key combination during a running process will interrupt the process and allow you to regain control of the terminal.
00:58
So holding down enter isn't going to do much If a command is running. Control tab is not a valid key sequence that does anything.
01:07
And while d just letting it finish, that could be a valid answer. Some. If you miss type a command, it could run for hours before you regain control of the terminal
01:19
and you're going to run into this a lot. As you get more comfortable with the command line where you will, I simply miss type of command, and you're gonna need to interrupt it, stop it from completing.
01:30
All right, so customize the CLI 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 read.
01:44
Ah, for Windows, there is a properties window in the top left corner. If you click on that will bring down the properties window and we can change that out. Lennox, it's kind of similar just editing preferences.
01:57
All right, so let me show you had to do that.
02:00
So this is our command prompt that we've opened up in a previous module, Gonna click up here in the top left and click on properties.
02:09
All right, now, from here we can change our phone size.
02:13
Let's say we want a even bigger so it'll be a little easier to read,
02:16
and we got to change the different type of fun as well. So it looks very fancy and we like
02:23
Ah, like an elite hacker, right?
02:28
You can change the size. We also change the colors as well.
02:31
All right, so let's go ahead. Hit. Enter and look at that. We got a little bit of change.
02:37
Looks pretty neat.
02:38
And if we want to change back, we can just go right on back.
02:44
Chicken out.
02:45
All right. And now, four, Lennox, we're gonna open up our terminal
02:51
*** and it
02:53
preferences,
02:53
and it's a similar kind of window here where we can go into change the text size,
03:00
spacing. We can also change the colors.
03:05
Let's say red.
03:08
All right?
03:14
Who?
03:15
I'm not sure why. I love sick.
03:23
All right,
03:24
so we can change the terminal size can change the font here,
03:30
select and clothes. And look at that. We got a different fun already.
03:35
And so it sze very customizable toe 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 of the terminal.
03:47
So that is able to be changed for your needs.
03:52
All right, control keys. So we got control. See, as you learned in the pre assessment. This interrupts a running process, and elasticity regain control of the terminal.
04:00
Control Z is a similar key combination where it will pause the writing process.
04:08
And with Lennox, you can actually restart a running process that was paused with E f g R foreground command.
04:17
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 l clears the screen.
04:29
All right, so let me show you that really quick. We will open up our Lennox terminal again that we have up.
04:34
So now let's say the top command this will show us the top running processes that our own my Lennox machine right now.
04:43
So, as you can see, it's taken over the terminal. Um, the normal way to quit this application is to push the cube button and that'll bring us right back. And I can play shut the up arrow g to bring my previous command up
04:58
and hit Enter and we're back in the top application
05:00
Now Say the cuchi wasn't working or I didn't know that the cuchi quit from top.
05:06
If I press control, see,
05:09
it will interrupt the process and bring me back to the terminal. Pretty cool.
05:14
Now I'm gonna bring this up again.
05:16
So we have our top application running now on going to press control Z.
05:23
And now see down here at the bottom. It says stopped right here.
05:28
So and we have the number one also, that is the process number. So if we type f g space one hit enter
05:35
were brought directly back into our policy process that we paused with control Z so this could be very useful for, ah, variety of different applications.
05:47
All right. And it's the same thing for the Windows desktop is well, he press control C or control Z
05:58
and control. L Yeah, let me show you that it does not work for Windows. Let's press control L on Lennox and check that out. So, as far as for windows for cleaning the screen, we can type B C. L s command enter cleared. Looks nice. And pretty now, so keep that in mind.
06:16
All right,
06:18
So post assessment What command restarts? A pause Command. Is it a restart?
06:24
B f g c front or D on pause.
06:30
If you said b f g, you're correct. That is thief foreground command. And it will bring a pause Command back to the front of the terminal so it could be interacted with so a restart. If you use this, it will actually restart a Lennox machine. Ah, as in power cycle, it
06:48
Ah see, front is not a real command and d unpoliced. It's not a real command as well.
06:57
All rights A video summary In this video we learned how to customize the CLI environment, how to understand various control functions and how to learn how to clear the screen. So I hope to see you in the next video.
Up Next
Similar Content