Linux Essentials For Hackers - #2 - Useful keyboard Shortcuts

HackerSploit
31 Oct 201907:06

Summary

TLDRThis video from the 'Linux Essentials for Hackers' course introduces viewers to essential keyboard shortcuts for navigating the Linux system and working with the terminal more efficiently. The tutorial covers opening a terminal, resizing windows, changing font size, clearing the terminal screen, ending and suspending processes, and using the tab key for auto-completion. The presenter demonstrates these shortcuts using Ubuntu and explains that they are generally applicable across various Linux distributions.

Takeaways

  • 😀 The video provides an introduction to Linux essentials for hackers, focusing on keyboard shortcuts to enhance terminal navigation and efficiency.
  • 💻 The tutorial is based on Ubuntu, but the concepts can be applied to other Linux distributions, emphasizing the universality of the discussed shortcuts.
  • 🔑 Opening a terminal in Ubuntu can be done with Ctrl+Alt+T or the Super key + T, showcasing quick access methods.
  • 📝 Customizing keyboard shortcuts is possible, allowing users to tailor their experience according to their preferences.
  • 🖥️ The video demonstrates how to use the Super key with arrow keys for window tiling, which is useful for organizing multiple windows.
  • 🔍 Adjusting font size in the terminal is made easy with Ctrl+Shift+Plus and Ctrl+Minus, enhancing readability.
  • 🗑️ Clearing the terminal screen can be achieved with the 'clear' command or the Ctrl+L shortcut, offering quick cleanup options.
  • ⏹️ Ending a running process in the terminal is as simple as using Ctrl+C, providing a quick way to stop tasks.
  • ⏸️ Suspending a process is done with Ctrl+Z, allowing users to pause tasks without terminating them.
  • 🔄 The up arrow key cycles through previously used commands, offering a fast way to repeat or edit past commands.
  • 🔖 The Tab key is used for auto-completion of file and directory names, streamlining the process of navigating through the file system.

Q & A

  • What is the primary focus of the Linux Essentials for Hackers course?

    -The primary focus of the Linux Essentials for Hackers course is to help users navigate the system more efficiently and work with the terminal at a faster pace using various keyboard shortcuts.

  • Which Linux distribution is the instructor using in the video?

    -The instructor is using Ubuntu in the video, but the course is designed to be applicable to any other Linux distribution.

  • What is the keyboard shortcut to open a terminal on Ubuntu?

    -The keyboard shortcut to open a terminal on Ubuntu is Ctrl+Alt+T or Super+T.

  • How can you perform window tiling in a Linux environment?

    -You can perform window tiling by using the Super key and the arrow keys to direct the location of the windows.

  • What keyboard shortcuts can be used to increase and decrease the font size in the terminal?

    -To increase the font size, use Ctrl+Shift+Plus, and to decrease the font size, use Ctrl+Minus.

  • What command or keyboard shortcut can be used to clear the terminal screen?

    -You can clear the terminal screen by typing 'clear' or using the keyboard shortcut Ctrl+L.

  • How can you stop a currently running process in the terminal?

    -You can stop a currently running process by using the keyboard shortcut Ctrl+C.

  • What is the keyboard shortcut to pause or suspend a process in the terminal?

    -The keyboard shortcut to pause or suspend a process in the terminal is Ctrl+Z.

  • How can you cycle through previously used commands in the terminal?

    -You can cycle through previously used commands by using the Up Arrow key.

  • What is the function of the Tab key in terms of auto-completion in the terminal?

    -The Tab key is used for auto-completing file and directory names. Pressing it once completes the name if it's unambiguous, and pressing it twice lists possible completions.

  • How can you close the terminal in a Linux environment?

    -You can close the terminal by using the keyboard shortcut Ctrl+Shift+W.

Outlines

00:00

💻 Linux Terminal Navigation and Shortcuts

This paragraph introduces the Linux essentials for hackers course, focusing on keyboard shortcuts to navigate the Linux system and work with the terminal more efficiently. The instructor uses Ubuntu as an example, mentioning that other distributions can be used as well. The video covers how to open a terminal using Ctrl+Alt+T or the Super+T key combination. It also explains how to perform window tiling using the Super key and arrow keys, change font size with Ctrl+Shift+Plus and Ctrl+Minus, clear the terminal screen with Ctrl+L, and end or pause processes with Ctrl+C and Ctrl+Z, respectively. Additionally, it discusses navigating through previous commands using the up arrow key and the use of the Tab key for auto-completion of file and directory names.

05:02

🔍 Advanced Terminal Shortcuts and Commands

The second paragraph continues with more advanced terminal shortcuts and commands. It demonstrates how to use the Tab key for auto-completion, providing examples of how a single Tab can complete a file or directory name, and how double Tab can list possible matches. The paragraph also covers closing the terminal with Ctrl+Shift+W and summarizes the basic keyboard shortcuts introduced in the video. The instructor encourages viewers to let them know if there are any shortcuts they missed and looks forward to the next video in the series.

Mindmap

Keywords

💡Linux Essentials

Linux Essentials refers to the fundamental knowledge and skills required to work effectively with Linux operating systems. In the context of the video, it is the central theme around which the tutorial is built, focusing on teaching viewers the basics of navigating and using Linux, particularly for those who might be more familiar with hacking or cybersecurity.

💡Keyboard Shortcuts

Keyboard shortcuts are combinations of keys that provide a quick way to perform tasks in a software application or an operating system. The video emphasizes the use of keyboard shortcuts to enhance efficiency while working in the Linux terminal, such as opening a terminal or navigating through windows.

💡Ubuntu

Ubuntu is a popular Linux distribution known for its user-friendly interface and strong community support. The video uses Ubuntu as the example Linux distribution to demonstrate the keyboard shortcuts and terminal commands, making the tutorial relevant to a broad audience of Linux users.

💡Terminal

The terminal, also known as the command line interface (CLI), is a text-based interface for interacting with the Linux operating system. The video focuses on the terminal as the primary tool for executing commands and managing tasks, showcasing various shortcuts and commands to improve productivity.

💡Tiling

Tiling in the context of the video refers to the arrangement of windows in a non-overlapping manner to maximize screen real estate. The script explains how to use the super key along with arrow keys to tile terminal windows, which is a useful technique for managing multiple tasks simultaneously.

💡Font Size

Adjusting the font size in the terminal can improve readability and user comfort. The video provides instructions on how to increase or decrease the font size using keyboard shortcuts, which is an important aspect of customizing the terminal environment to suit individual preferences.

💡Clear Command

The 'clear' command is used in the terminal to clear the screen of any previous output, providing a clean slate for new commands. The video mentions this command as a way to quickly clear the terminal, and also introduces the corresponding keyboard shortcut (Ctrl+L) for the same purpose.

💡Control+C

Control+C is a keyboard shortcut used to terminate or interrupt the current process running in the terminal. The video explains its use in the context of stopping a process like 'nmap', which is a network scanning tool, demonstrating how to manage and control processes from the terminal.

💡Control+Z

Control+Z is a keyboard shortcut that suspends the current process in the terminal, allowing users to pause and later resume it. The video uses this shortcut in the context of pausing an 'nmap' scan, illustrating how to manage ongoing tasks without terminating them.

💡Auto-Completion

Auto-completion is a feature that suggests or completes file and directory names as you type, based on the available options. The video demonstrates how to use the Tab key for auto-completion in the terminal, which can save time and reduce typing errors, especially when dealing with long or complex file paths.

💡Control+Shift+W

Control+Shift+W is a keyboard shortcut that closes the current terminal window. The video mentions this shortcut as part of the comprehensive list of terminal shortcuts aimed at streamlining the user's interaction with the Linux environment.

Highlights

Introduction to Linux Essentials for Hackers course

Exploring keyboard shortcuts for efficient terminal navigation

Ubuntu as the primary Linux distribution for the course

Using the terminal with dpn, Ubuntu's base on Debian

Introduction to the aptitude package manager

Keyboard shortcut to open terminal: Ctrl+Alt+T or Super+T

Customizing keyboard shortcuts in Linux

Tiling windows using the Super key and arrow keys

Changing font size with Ctrl+Shift+Plus and Ctrl+Minus

Clearing the terminal screen with the 'clear' command or Ctrl+L

Ending a running process with Ctrl+C

Pausing a process with Ctrl+Z

Cycling through previous commands with the Up Arrow key

Auto-completion of file and directory names with the Tab key

Using double Tab for file suggestions

Closing the terminal with Ctrl+Shift+W

Encouragement to learn more keyboard shortcuts throughout the series

Transcripts

play00:00

hey guys welcome to the linux essentials

play00:02

for hackers course

play00:03

in this video we're gonna get started

play00:05

with taking a look at the various

play00:07

keyboard shortcuts

play00:08

uh that will help you navigate around

play00:10

the system much easier and to work with

play00:12

the terminal

play00:13

uh at a much more efficient rate all

play00:15

right so let's get started now i'm

play00:17

currently using ubuntu you can be using

play00:19

any other linux distribution that you

play00:22

want

play00:23

and we're going to be primarily working

play00:25

with the terminal first before we

play00:26

actually

play00:27

delve into desktop environments and you

play00:30

know various other distributions so

play00:32

we're going to be using dpn and again

play00:34

ubuntu is based off debian

play00:36

and for our package manager we'll be

play00:38

taking a look at the aptitude package

play00:40

manager but as i said

play00:42

we'll be delving into all of that later

play00:44

on all right so with ubuntu

play00:46

uh getting opening up a terminal with

play00:48

your keyboard is very simple you have

play00:50

your control alt n t

play00:51

key or you have your super and t if

play00:54

you're running debian or any other

play00:56

distribution so

play00:56

on ubuntu it's ctrl alt n t or your

play01:00

super nt

play01:01

and you can customize your keyboard

play01:02

shortcuts uh however you want all right

play01:05

so

play01:05

let me just uh let me just minimize this

play01:08

now uh the other interesting thing that

play01:10

you can do

play01:11

or very helpful thing that you can do

play01:12

when working with various windows

play01:15

it doesn't have to be a a terminal

play01:17

window

play01:18

is you can perform tiling and that is by

play01:20

using the super key

play01:21

and your arrow keys to direct the

play01:24

location of the windows and you can tile

play01:26

them

play01:26

appropriately right so as you can see

play01:28

i've used the super and up key

play01:31

and that maximizes it and of course i

play01:33

can take it to the left or i can take it

play01:34

to the right

play01:35

and i can you know leave it uh where it

play01:37

was previously right so let me just

play01:39

expand it now let me talk about a font

play01:41

size right so font size is very easy to

play01:44

change and

play01:44

to actually increase and reduce so if i

play01:47

wanted to increase my font size i would

play01:49

use the ctrl

play01:50

shift and the plus key on my keyboard

play01:53

and that would increase

play01:54

the font size right i can then minimize

play01:56

it by using the control and the minus

play01:58

key on my keyboard

play02:00

and that will reduce the font size so

play02:01

again increasing it is ctrl shift

play02:04

and and the plus key and reducing the

play02:07

font size is control and

play02:09

the minus key on your keyboard right so

play02:12

that is uh how to increase and reduce

play02:15

your font size

play02:16

now let's talk about uh actually

play02:18

clearing your screen which is very very

play02:19

simple so

play02:20

i'll just use a generic command here you

play02:22

don't have to worry about what that

play02:24

command is

play02:25

so if i wanted to clear my terminal i

play02:27

would simply say clear and that will get

play02:29

rid of all

play02:30

the content that was currently on the

play02:32

terminal however

play02:34

i can also use a keyboard uh

play02:37

keyboard shortcut uh so again if i just

play02:39

list the same command here

play02:41

i can use the control and l key and that

play02:43

will clear the terminal for me without

play02:45

me having to type the clear command

play02:47

all right so let's talk about some some

play02:49

other keyboard shortcuts that you should

play02:51

be aware of right so

play02:53

if we are working with a particular

play02:55

process so for example

play02:57

i can say nmap i can run a quick nmap

play03:00

scan here and i can just say

play03:02

sv 192.168.1.1

play03:06

and we can hit enter i can use the

play03:08

control c key

play03:10

to actually uh end the currently running

play03:12

process and it will return you back to

play03:14

your

play03:15

uh to your shell uh in this case we're

play03:17

using the bash

play03:18

shell so if i want to end a process

play03:21

that's currently running like the one i

play03:22

was running which was nmap

play03:24

i use the control and c keyboard

play03:26

shortcut right

play03:27

now if i wanted to suspend or to pause

play03:30

this

play03:31

or to pause a particular task or a

play03:33

process

play03:34

i can use the control and z key right so

play03:37

if i was running

play03:38

nmap s v the same key or the same

play03:41

command i can type that out

play03:43

however here are other useful keyboard

play03:45

shortcuts that you can use

play03:47

so i can cycle through my previously

play03:49

used commands by using the

play03:50

up arrow key and that will again cycle

play03:53

through all my all my previously used

play03:55

commands

play03:56

so again i can just go to this previous

play03:58

command and hit enter

play03:59

and then i can use control and z to

play04:02

actually

play04:02

pause and suspend that process in memory

play04:06

and

play04:06

remember it hasn't stopped it you have

play04:08

just suspended it all right now let's

play04:10

talk about tab

play04:11

uh let's talk about the tab key and auto

play04:14

completion right

play04:15

so we can use the tab key to auto

play04:18

complete file and directory names so

play04:20

let me just clear this out and i can use

play04:22

the control and l key

play04:23

so if i go to my well i can actually

play04:26

work from my home directory but

play04:28

let's say i wanted to cat a particular

play04:31

file so let me just

play04:32

list all the files in here so let's say

play04:34

i wanted to get

play04:35

my let's see or let's say i wanted to

play04:39

get my

play04:39

my password file so again i can say cat

play04:43

etsy and i can say password right now

play04:47

if i wanted to auto complete this i

play04:49

could use the tab

play04:50

key and again it will if i use it two

play04:52

times it will give me the various

play04:54

suggestions here so

play04:55

a single tab will auto complete it if it

play04:57

has an accurate

play04:59

uh id of of the particular file or

play05:01

directory you're

play05:02

referring to so again if i said uh if i

play05:05

give it a bit more information in

play05:06

regards

play05:07

to the file or directory i was looking

play05:09

for i would

play05:10

simply just hit tab and it gives me the

play05:13

file there

play05:13

however i can hit double tab and that

play05:16

again gives me

play05:17

the files that are related to the

play05:19

particular data that i've entered here

play05:21

so again if i reduced it just to ap

play05:23

and i hit tab twice it will give us the

play05:25

recommendations

play05:26

as to uh in in reference to the to to

play05:29

the

play05:30

to the particular files that uh that

play05:32

begin with the word p

play05:33

and again if i can increase that

play05:35

probability or

play05:37

the specification of the file i'm

play05:39

looking i'm looking for

play05:40

by increasing the amount of letters so

play05:42

again again i can tap it twice and now

play05:44

you can see the results are more

play05:46

fine-tuned so again

play05:47

i can uh i can use tab to auto complete

play05:50

it to password and i can hit enter

play05:52

and that displays the contents of the

play05:53

password file so that is how to use

play05:55

uh the tab key and those are the various

play05:58

uh you know commands that

play06:00

or keyboard shortcuts that you can use

play06:02

while working in the terminal and

play06:03

hopefully those will make your

play06:04

life a whole lot easier so again control

play06:07

and l that clears everything for me

play06:09

now let's talk about how to close your

play06:11

terminal so again closing your terminal

play06:14

is very simple you can use uh the

play06:16

control shift and w

play06:17

key so again i can say ctrl shift and w

play06:20

here

play06:21

uh right over here and that works uh

play06:23

pretty universally among all

play06:25

distributions so again ctrl alt d that

play06:27

opens up your terminal

play06:29

uh increasing the font size control

play06:31

shift and the plus key

play06:32

and so on and so forth and you can tile

play06:35

your terminal or any window in your

play06:37

system

play06:37

by using the super key and your arrow

play06:40

keys or your directional keys here

play06:42

all right so those are all uh the basic

play06:46

keyboard shortcuts that i wanted to

play06:47

start off with i'll be referencing

play06:49

others

play06:50

throughout the series let me know which

play06:51

ones i missed

play06:53

and i'll be seeing you in the next video

play06:55

in this series

play07:03

[Music]

play07:06

you

Rate This

5.0 / 5 (0 votes)

Связанные теги
Linux EssentialsHacker CourseKeyboard ShortcutsTerminal NavigationUbuntuDebianAptitudePackage ManagerTiling WindowsFont Size AdjustmentScreen ClearingProcess ManagementAuto-Completion
Вам нужно краткое изложение на английском?