Kali Linux Terminal Shortcuts

Hackers Academy - Online Ethical Hacking Tutorials
A free video tutorial from Hackers Academy - Online Ethical Hacking Tutorials
HackersAcademy.com
4.6 instructor rating • 2 courses • 59,494 students

Learn more from the full course

Kali Linux Tutorial For Beginners

#1 Ranking Kali Linux Tutorial! Learn from the pros how to use Kali Linux easily and quickly.

07:55:21 of on-demand video • Updated December 2021

  • Perform basic to advanced tasks in Kali Linux
  • Hack your way through multiple customized targets
  • Learn how the good guys hack and how the bad guys hack (and get your hands on the credit cards!)
  • Understand how native Linux commands can be used by hackers
  • Build up a Linux target from scratch to hack with Kali Linux
  • A lot more!
English [Auto] Let's have a look at some useful tips and tricks and shortcuts when it comes to determining one of the most common, most useful signals that you can send to a terminal is the kill command. Sometimes you'd be running a process or a program that you want to interrupt or you want to kill. The way to do that is by using the control seat, as demonstrated that using the paint command on windows, if you remember when we did the paint command, it stops by itself. It issues for pink packets and then it automatically stops. And then if I do a big package academy dot com and will continue pinging until I stop it myself, it wouldn't stop automatically. The way to do that is by doing control, C control. C is the kill command or the kill signal that I sent to my journal to tell it to stop or kill a program that's running. Another option is to do the control Z. So if I run the command again and this time I don't want to kill the program, I just want to put it in the background, because if you look at my turn and right now the thing is holding my terminal, I can't type anything. I can continue work if I want my terminal back, but I don't want to kill the big command. I can put it in the background by doing Control Z. I notice that now it says it stopped, so it's been suspended, but it's not being killed. If you look at the left side, there's a number here. This is the number of the program or the job that's been suspended and put in the background. And this is useful. If I want to bring it back to the foreground, I can do F, G or foreground and the number of the job that I put in the background and look at that, it brings it back to the foreground and it continues the process. Now, if I want to kill that, what I do control see. OK, now I have a lot of mess on my screen, I want to clear it up, the way to do that is by issuing the clear command and this clears up my screen. If I want to exit my terminal, I do exit. I'm not going to do that now because I'm still working on it. Here are some other useful tips, the tab key is used for auto completion and Linux. What this means is that if I start typing a commands instead of me typing the whole thing, I can just hit the turkey and it will auto complete it for me. Now, the thing you need to be careful with is that sometimes there are multiple options to one command. So, for example, if I'm trying to do Traceroute and I took the tab, key ones, nothing happens. I'll have to type it twice. Tab, tab. I notice what happens here. I get multiple options and they all start with trace. This is why Linux wasn't able to autocomplete it for me because it didn't know which one I wanted to choose. So I'll have to do a little bit more competition myself. I put the order and I'll try again. One tab have completed the recognizes that this is what I want. Now, the top command is useful not only for executing commands, but for browsing directories. It saves me a lot of typing. So let's say, for example, I want to work on a file and unmap folder under my documents folder under my root folder. And to do that I want to do a CD. Don't worry about what CD means, will learn that in a moment. But instead of typing route, I'll do Auro tab. Instead of typing documents, I do Dorsay Tab instead of writing and map. I do and and tab see how easy it is. Instead of typing all of that. I'm going to delete that for now because we don't need that. Here are some other tips for you to scroll up and down the screen instead of using the mouse. If I don't have the graphical user interface and I don't have the mouse option, I can do shift page up and shift page down. If I want to repeat previous commands instead of typing the whole thing again, I can use the arrow keys. I can do arrow up or down. I can also look at my entire command history by issuing the history commands. Let's say I want to search my command history. What do I do? I do control and I type whatever I'm looking for. Let's say I'm looking for a map and I'm a notice how the output starts changing because it's trying to find the key, what I'm looking for. And here we go. I found one with a map. That was one of the comments that I typed earlier on. And this, by the way, is a command that you'd be learning towards the end of the course. Now, if I hit enter, it will execute the command for me. It says no follow directory because I'm working in a different directory. So don't worry about that. Let's do another one. I'll do control or and let's say, for example, I'm looking for the thing command. Look at that by hand. It automatically finds that the command for me, if I do enter it, executes the command for me. I do control to kill it. Let's say, for example, I want to change the command to Traceroute. So instead of going back one letter at a time, I can do control a to move to the beginning of the cursor and now I can change the command to traceroute it, for example, instead of dot com. I want to change it to dot org. I can move to the end of the cursor using control e another option I can use to delete the whole thing, which is the same as the cut command is the control k. Now obviously for that to work I need to be at the beginning of the cursor, which is control a and then the control K will cut or delete the whole line. This is more useful when I'm dealing with text editing, but it still could be used in the terminal. If I want to base that back, I use the control y y stance for Yank and if I want to clear my screen I do control L and that gives up my screen. Great experiment with those. For one, try them out for yourself and then we can move on to the next section.