5 hours 21 minutes
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?
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.
All right, pretty Sussman. So you enter a command and your screen freezes. What do you do?
Do you a press control? C B? Hold down. Enter. See, Press control tab or D? Just let it finish.
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.
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.
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
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.
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.
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.
All right, so let me show you had to do that.
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.
All right, now, from here we can change our phone size.
Let's say we want a even bigger so it'll be a little easier to read,
and we got to change the different type of fun as well. So it looks very fancy and we like
Ah, like an elite hacker, right?
You can change the size. We also change the colors as well.
All right, so let's go ahead. Hit. Enter and look at that. We got a little bit of change.
Looks pretty neat.
And if we want to change back, we can just go right on back.
All right. And now, four, Lennox, we're gonna open up our terminal
*** and it
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.
I'm not sure why. I love sick.
so we can change the terminal size can change the font here,
select and clothes. And look at that. We got a different fun already.
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.
So that is able to be changed for your needs.
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.
Control Z is a similar key combination where it will pause the writing process.
And with Lennox, you can actually restart a running process that was paused with E f g R 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 l clears the screen.
All right, so let me show you that really quick. We will open up our Lennox terminal again that we have up.
So now let's say the top command this will show us the top running processes that our own my Lennox machine right now.
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
and hit Enter and we're back in the top application
Now Say the cuchi wasn't working or I didn't know that the cuchi 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 gonna bring this up again.
So we have our top application running now on 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 f g space one hit enter
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.
All right. And it's the same thing for the Windows desktop is well, he press control C or control Z
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.
So post assessment What command restarts? A pause Command. Is it a restart?
B f g c front or D on pause.
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
Ah see, front is not a real command and d unpoliced. It's not a real command as well.
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.
SOC Analyst Assessment Level 1
Cydefe's SOC Analyst Assessment, Level 1, Capture-the-Flag (CTF) Assessment
How to Use GDB (BSWJ)
In this part of the Breaking Stuff with Joe (BSWJ) series, Joe Perry demonstrates how ...
Certificate of Completion Offered