Linux for Hackers // EP 1 (FREE Linux course for beginners)

NetworkChuck
19 Mar 202111:32

Summary

TLDRThis video script introduces the 'Linux for Hackers' series, emphasizing Linux's necessity for hacking due to its open-source nature, security, and speed. It offers a free Linux lab through a partnership with Hack The Box Academy, guiding viewers to set up and start using Linux immediately. The tutorial covers fundamental Linux commands like 'pwd', 'ls', and 'cd', transitioning from GUI to the command line interface. It also explains Linux's role as a kernel and its various distributions, highlighting its prevalence in hacking and server operations.

Takeaways

  • πŸ’» Linux is a foundational skill for hacking and is considered a prerequisite for many hacking activities.
  • πŸ‘¨β€πŸ« The 'Linux for Hackers' series aims to teach Linux to everyone, not just hackers, emphasizing its universal utility.
  • πŸ”— A free Linux lab is provided through a partnership with Hack The Box Academy, allowing immediate hands-on experience with Linux.
  • πŸ‘§ The presenter's young daughters are also learning Linux, debunking the myth that it's too difficult to learn.
  • πŸ”‘ The series uses a Linux distribution called Parrot OS, which is designed for hacking and uses the Linux kernel.
  • 🌐 Linux's popularity among hackers is due to its open-source nature, security, and the abundance of hacking tools available for it.
  • πŸ—‚οΈ The Linux terminal, or command line, is the primary way to interact with the system, offering efficiency and power.
  • πŸ“‚ Basic commands like 'pwd', 'ls', and 'cd' are introduced to navigate the file system, demonstrating the transition from GUI to CLI.
  • πŸ”„ The concept of the Linux kernel as an interface between hardware and software is explained, highlighting its role in the OS.
  • πŸŽ“ The video serves as an introduction to Linux, with more in-depth coverage of commands and concepts promised in subsequent videos.

Q & A

  • Why is Linux considered a foundational skill for hackers?

    -Linux is considered a foundational skill for hackers because it is a prerequisite for hacking activities. It is an open-source operating system that offers flexibility, speed, and security, making it ideal for hacking tools and activities.

  • What is the significance of the 'cubes' in the Hack The Box Academy?

    -The 'cubes' in the Hack The Box Academy represent a form of currency used to unlock courses. Users start with 30 cubes, and they can use these to access different modules within the platform.

  • How does the Linux kernel differ from an operating system?

    -The Linux kernel is not an operating system itself; it is the core part of an operating system that interfaces with the hardware. Operating systems like Parrot OS are built on top of the Linux kernel.

  • Why are most hacking tools Linux-based?

    -Most hacking tools are Linux-based because Linux is open-source, allowing for customization and adaptation to suit specific hacking needs. It is also known for being faster and more secure, which are desirable traits in hacking environments.

  • What is the purpose of the 'pwd' command in Linux?

    -The 'pwd' command stands for 'print working directory' and is used to display the full path of the current directory in which the user is working.

  • What does the 'ls' command do in Linux?

    -The 'ls' command stands for 'list' and is used to display the contents of the current directory, including files and subdirectories.

  • How can you change directories in Linux using the terminal?

    -You can change directories in Linux using the 'cd' command followed by the name of the directory you want to navigate to. For example, 'cd Desktop' will change the current directory to the Desktop.

  • What does 'cd ..' do in the Linux terminal?

    -The command 'cd ..' is used to navigate up one level in the directory hierarchy, effectively moving back to the parent directory from the current location.

  • What is the significance of the root directory in Linux?

    -The root directory in Linux, represented by a forward slash (/), is the top-level directory in the file system hierarchy. It contains all other directories, subdirectories, and files on the system.

  • How can a user determine their current location in the Linux file system?

    -A user can determine their current location in the Linux file system by using the 'pwd' command, which prints the full path of the current working directory.

  • What is the role of Hack The Box Academy in the Linux for hackers series?

    -Hack The Box Academy is the official sponsor of the Linux for hackers series. They provide a free Linux lab for users to practice and learn Linux through their platform, which is integrated into the series.

Outlines

00:00

πŸ’» Introduction to Linux for Hackers

The speaker emphasizes the importance of Linux as a foundational skill for hacking, suggesting it's a prerequisite. They introduce their 'Linux for Hackers' series, which is also applicable for everyone interested in Linux. The series aims to teach the basics of Linux to start hacking. The speaker encourages immediate engagement by directing viewers to a free Linux lab through a partnership with Hack The Box Academy. They highlight the accessibility of learning Linux, even for their young daughters, to dispel any myths about its difficulty. The video guides viewers through signing up for the lab, unlocking a Linux fundamentals course, and starting their own Linux instance in their browser. The speaker introduces the concept of Linux distributions, specifically Parrot OS, and differentiates between the Linux kernel and the operating system. They explain why Linux is preferred by hackers due to its open-source nature, security, and the availability of hacking tools.

05:01

πŸ› οΈ Mastering Linux Terminal Commands

The speaker transitions from the graphical user interface (GUI) to the Linux terminal, which they argue is the true way to harness the power of Linux. They introduce basic terminal commands: 'pwd' to print the working directory, 'ls' to list directory contents, and 'cd' to change directories. The tutorial is interactive, with the speaker performing actions in the GUI and then replicating them in the terminal to solidify understanding. They also demonstrate how to navigate back to the previous directory using 'cd ..' and explore the root directory. The segment aims to transition viewers from a GUI-centric mindset to a command-line approach, which is more efficient and powerful for hacking and system administration.

10:02

πŸš€ Recap and Future Learning Path

In the concluding segment, the speaker recaps the key points covered in the video, including the definition and benefits of Linux, the significance of the Linux kernel, and the introduction to Linux terminal commands. They pose a quiz to engage viewers and reinforce learning. The speaker expresses gratitude to Hack The Box Academy for sponsoring the series and encourages viewers to continue their Linux learning journey on the platform. They also remind viewers to engage with the video by liking, subscribing, and commenting to support the content. The speaker sets the stage for deeper exploration of Linux in subsequent videos, promising to prepare viewers for becoming hackers.

Mindmap

Keywords

πŸ’‘Hacker

A hacker is an individual who is skilled in computer programming and networking, often associated with the ability to find and exploit vulnerabilities in systems or networks. In the context of the video, the term is used to describe someone who is learning to use Linux for ethical hacking purposes, which involves using Linux to understand and secure systems against malicious hackers.

πŸ’‘Linux

Linux is an open-source operating system that is widely used for its flexibility, security, and stability. It is based on the Linux kernel and can be found in various distributions such as Ubuntu, Debian, and Parrot OS. The video emphasizes Linux as a foundational skill for hackers due to its robustness and the availability of numerous hacking tools that are built for it.

πŸ’‘Parrot OS

Parrot OS is a Linux distribution specifically designed for ethical hacking and security auditing. It comes pre-installed with various security and penetration testing tools. The video mentions that the tutorial will be using Parrot OS, highlighting its suitability for hacking tasks and its user-friendly graphical interface.

πŸ’‘Hack The Box Academy

Hack The Box Academy is an online platform that provides training and resources for learning ethical hacking and cybersecurity. The video script mentions a partnership with Hack The Box Academy, which sponsors the series and offers a free Linux lab for practice, indicating the platform's role in educating viewers on hacking techniques.

πŸ’‘Linux Kernel

The Linux kernel is the core of the Linux operating system, responsible for interfacing with the computer's hardware and managing system resources. The video explains that while Linux is often referred to as an operating system, technically it is a kernel, and various distributions build their operating systems on top of it.

πŸ’‘Open Source

Open source refers to a type of software whose source code is made available to the public, allowing anyone to view, modify, and distribute the software. The video highlights Linux's open-source nature as one of its key advantages, as it enables a community-driven development model and the creation of specialized distributions like Parrot OS.

πŸ’‘Terminal

The terminal, also known as the command line, is a text-based interface for interacting with the computer's operating system. The video emphasizes the importance of learning terminal commands as a fundamental skill for using Linux effectively, moving away from the graphical user interface to perform tasks more efficiently.

πŸ’‘pwd

pwd stands for 'print working directory' and is a command used in the Linux terminal to display the current directory in which the user is working. The video uses pwd as an example of a basic command that helps users understand their location within the file system, which is crucial for navigating and managing files in Linux.

πŸ’‘ls

ls is a command in the Linux terminal that lists the contents of the current directory. The video uses ls to demonstrate how to view files and directories, which is a fundamental task when working with Linux and essential for organizing and accessing files.

πŸ’‘cd

cd stands for 'change directory' and is a command used in the Linux terminal to navigate to a different directory. The video explains how to use cd to move between directories, which is a basic but essential skill for managing and accessing files in a Linux environment.

πŸ’‘GUI

GUI stands for Graphical User Interface, which is a visual way of interacting with a computer system. The video contrasts the GUI with the terminal, suggesting that while GUIs are intuitive, mastering the terminal is more efficient and powerful for advanced tasks, such as hacking.

Highlights

Linux is a foundational skill for hackers and is considered a prerequisite.

The series aims to teach Linux to everyone, not just hackers.

Access to a free Linux lab is provided through a partnership with Hack The Box Academy.

Hack The Box Academy is the official sponsor of the series.

The speaker's two oldest daughters, aged ten and seven, are also learning Linux through Hack The Box Academy.

The series will use the Linux lab for all its lessons.

Participants are encouraged to start using Linux immediately through the provided lab.

The Linux distribution used in the lab is Parrot OS, built for hacking.

Linux is technically a kernel, not an operating system, with distributions built on top of it.

Linux is open source, which allows for freedom in use and redistribution.

Linux is known for being faster and more secure, making it popular for web servers and hacking.

The Linux terminal is the primary interface for using Linux, as opposed to a graphical user interface.

The 'pwd' command is introduced to show the current working directory.

The 'ls' command lists the contents of the current directory.

The 'cd' command is used to change directories.

Using 'cd ..' allows users to navigate back to the previous directory.

The root of the file system is represented by a forward slash '/'.

The video concludes with a quiz to test the viewer's understanding of the commands learned.

The video emphasizes the importance of Linux in hacking and the power of the terminal commands.

Transcripts

play00:00

if you want to become a hacker you need

play00:02

to know linux it's a required

play00:04

foundational skill it's actually a

play00:05

prerequisite to doing anything and

play00:06

hacking like you have to know it

play00:08

so that's why in this series i'm going

play00:10

to teach you linux

play00:11

welcome to my linux for hackers series

play00:21

now while the series is linux for

play00:23

hackers most of what i'm covering is

play00:25

linux for

play00:26

everyone and i do mean everyone if

play00:27

you're nit or anything you need to learn

play00:29

and know linux this series will teach

play00:31

you the linux foundations you need to

play00:33

start hacking

play00:33

and we're not going to waste any time

play00:35

like you're going to start using linux

play00:36

right now i'm not kidding like right

play00:38

this moment

play00:38

in your browser check the link in the

play00:40

description you're getting access to a

play00:42

free

play00:42

linux lab thanks to my partnership with

play00:44

hack the box academy they're actually

play00:46

the official sponsor of this entire

play00:48

series so let's go let's get you using

play00:49

linux right now and by the way i'm

play00:50

having my two oldest daughters do the

play00:52

same thing

play00:52

you ready to start hacking no clue you

play00:54

ready start hacking

play00:56

sure they are ten and seven they're

play00:59

signing up for hack the box academy

play01:02

so if you're thinking man i can't learn

play01:04

linux that's too hard bullcrap

play01:06

yes you can let's go right now

play01:13

so once you've clicked the link and you

play01:14

signed up which by the way you should

play01:16

this entire series will use this lab so

play01:18

do it you can go through the

play01:19

introduction or just click skip like i

play01:21

am

play01:21

no big deal now notice one thing real

play01:23

quick right under your username you'll

play01:24

have 30 of whatever the junk that is

play01:26

those are cubes

play01:27

cubes are what you need to unlock

play01:29

whatever course you want to take through

play01:31

hack the box academy you can also

play01:32

purchase more but hey we've already got

play01:33

30 we're good

play01:34

so next click on modules and then all

play01:37

modules

play01:38

i'm going to scroll down just a bit

play01:39

until i see linux fundamentals right

play01:41

here

play01:41

it costs 10 cubes we got 30. we're good

play01:43

we're going to click on unlock but real

play01:45

quick before you do that

play01:46

notice this right here what this plus 10

play01:48

means is that if we finish this linux

play01:49

fundamentals course like we actually

play01:51

complete it hack the box academy will

play01:53

give us 10 cubes back

play01:54

so it's basically free as long as you do

play01:56

it what you're going to right not a big

play01:58

deal

play01:59

so let's click on it click on unlock yes

play02:02

let's do this thing and let's not waste

play02:03

any time let's click on start right now

play02:05

and on this page what we're going to do

play02:06

is scroll all the way to the very very

play02:08

bottom

play02:08

all the way here until you see this

play02:12

your workstation this is your linux box

play02:14

let's go ahead and click on start

play02:16

start instance coffee break perfect time

play02:22

ah that's good stuff what are you

play02:23

drinking today let me know in the

play02:24

comments and

play02:26

it's ready and this is pretty cool watch

play02:27

this all you gotta do is click

play02:29

interact and it's gonna launch the

play02:30

sucker in your browser

play02:32

click go so here we go your very own

play02:35

linux machine

play02:36

your playground hack the box will call

play02:37

this your phone box

play02:39

and i love that so now that we're here

play02:41

inside our linux box we're going to

play02:42

accomplish two things

play02:44

first what is this i understand this may

play02:46

be your first time

play02:48

ever using linux you might be wondering

play02:50

what do i do

play02:51

i don't even know what this is we'll

play02:53

cover that and then two we're gonna

play02:54

start using it right now

play02:56

i'm gonna get you started with your

play02:57

first linux terminal commands and i'll

play02:59

cover what that means

play03:00

so first what the junk is this so this

play03:02

computer you're using right now

play03:04

here in your browser which is crazy this

play03:06

is linux

play03:07

but to be specific and technical this is

play03:09

actually a distribution of linux called

play03:10

parrot os which is an operating system

play03:12

built for hacking now the os

play03:14

and parrot os stands for operating

play03:17

system like

play03:18

windows mac os ios android it's the

play03:20

software that we interact with to make

play03:22

our computer do things so if someone

play03:23

were to ask you hey what operating

play03:25

system are you running right now

play03:27

it would be parrot os and parrot os is

play03:29

using linux

play03:30

and more specifically the linux kernel

play03:33

and i wanted to point that out because

play03:34

linux

play03:34

is technically not an operating system

play03:37

linux is a kernel

play03:38

and we build operating systems on top of

play03:40

it so para os is not the only flavor or

play03:42

distribution of linux there'll be kali

play03:44

linux

play03:44

ubuntu centos debian and they'll all use

play03:47

a version of the

play03:48

linux kernel which is actually part of

play03:50

the os but it's not the

play03:51

os now what does the linux kernel do it

play03:54

has a very important job

play03:55

it interfaces with our hardware cpu ram

play03:58

hard drive etc when we as the hacker

play04:01

want to run our favorite hacking tool

play04:02

let's say nmap or something we tell

play04:04

parrot os

play04:05

click let's run nmap parrot os will say

play04:07

hey linux kernel

play04:08

can we get some hardware resources here

play04:10

can you tell them

play04:11

and linux kernel gets the hardware

play04:13

resources set up it's kind of the middle

play04:14

man between the application

play04:15

the os and the hardware but to simplify

play04:19

things

play04:20

we just call it linux and we say what

play04:22

flavor of linux and we say well parrot

play04:24

os

play04:25

now the bigger question might be why

play04:27

linux i mean we got windows we got mac

play04:29

os what's wrong with those guys

play04:30

well nothing and everything you see

play04:33

what's great about linux

play04:34

i'll explain what's great about linux is

play04:36

that it's open source which means a lot

play04:38

but it basically means that it's open

play04:40

and free to use and redistribute so

play04:42

people can make awesome distributions

play04:44

like parrot os

play04:46

the other benefit of linux is that it's

play04:48

traditionally faster

play04:49

and more secure which is why most

play04:51

websites and servers in the world use

play04:53

linux as their operating system and it's

play04:55

also why hackers use linux

play04:57

most of the hacking tools out there are

play04:59

linux based so that's what linux is and

play05:00

this is why we use it but now how do we

play05:02

use it that's a more interesting

play05:04

question because

play05:05

you might be looking at this screen here

play05:07

your computer desktop and you may be

play05:09

thinking wow i didn't know linux had

play05:11

a pretty gui like this a graphical user

play05:13

interface icons and a dock and

play05:15

menus and stuff like that's cool and you

play05:17

can use linux like this

play05:19

but it wasn't meant to be used like this

play05:21

so slow down

play05:22

the truly wheeled the power of linux you

play05:25

don't use gui you're going to use the

play05:27

linux terminal

play05:28

the command line this guy right here go

play05:30

ahead and click on that i can't tell if

play05:31

that's green or yellow i'm colorblind

play05:33

but go ahead and click on that

play05:35

icon there this is the linux terminal

play05:37

and this is how you are supposed to use

play05:39

linux now if you're coming from the gui

play05:41

only world where all you use is a

play05:42

graphical user interface

play05:44

this might seem a little scary i totally

play05:46

get it but don't worry

play05:47

we're going to walk through this we're

play05:48

going to teach you a few commands here

play05:50

i'm going to slowly wing you off the

play05:51

graphical user interface

play05:53

i'll pull it up side by side actually

play05:55

watch here we go we're gonna teach you

play05:56

your first few commands

play05:57

so follow along with me go ahead and

play05:59

have your linux terminal open and also

play06:01

at the same time

play06:02

open up your home directory right here

play06:03

just double click that sucker

play06:05

double click i'm going to teach you your

play06:06

first few commands by doing something

play06:08

here in the gui and then doing that same

play06:09

thing here in the linux terminal now

play06:11

here's the first thing

play06:12

what i love about the gui is that you

play06:14

always kind of know where you are right

play06:16

because you can see it right now i'm in

play06:17

my user directory my home directory

play06:19

because i can see it right there and

play06:21

there's all my stuff now over here

play06:23

i don't see anything how do i know where

play06:25

i am we're going to solve that our first

play06:26

command

play06:27

type it in with me right now three

play06:28

letters pwd

play06:30

pwd stands for print working directory

play06:33

and it basically does what we see

play06:34

here and here it tells us where we're at

play06:38

hey where am i oh i'm right here let's

play06:40

try it out go ahead and hit enter

play06:42

bam it shows us the full path of where

play06:44

we are right now

play06:46

the home directory and then even further

play06:49

in

play06:49

drilling down our user directory so

play06:51

right now we're actually in the same

play06:52

spot

play06:53

as our gui same location okay cool we

play06:56

know where we are

play06:57

but we still don't see the same stuff in

play06:58

our gui like right now where i'm at i

play07:00

can actually see my my desktop and

play07:01

templates and documents folders and

play07:03

downloads folders

play07:04

i don't see that here how do i see that

play07:06

next command

play07:07

type it with me it's going to be our ls

play07:09

command ls

play07:11

ls stands for list and it's pretty

play07:13

simple what it does it'll simply list

play07:15

the contents of your current working

play07:16

directory it's going to list what we see

play07:18

right here you want to see let's do it

play07:20

go ahead and hit enter

play07:22

and boom it did it everything we see

play07:24

here desktop downloads templates

play07:26

documents postman

play07:27

is also right here see you can do

play07:28

anything in the terminal and it's faster

play07:30

i'll convince you don't worry let's keep

play07:32

going let's say we want to take a peek

play07:34

inside of our desktop folder right here

play07:36

in the gui i know i can just click on

play07:37

that folder double click

play07:39

jump in there and i can see my stuff how

play07:41

do we do that in the terminal our next

play07:43

command here we go

play07:44

the command is c d very simple

play07:47

cd stands for change directory and it's

play07:50

going to do exactly what we just did

play07:51

here

play07:51

watch let's do it right now just after

play07:53

cd i'll hit space and then tell it what

play07:55

directory i want to go to let's go to

play07:56

desktop so i'll type in

play07:58

desktop and go

play08:01

oh did it work i don't know

play08:05

let's let's see let's print our working

play08:06

directory pwd

play08:08

let's see if we actually change to that

play08:10

directory

play08:12

we did there's a current working

play08:13

directory and we did indeed

play08:15

drill down right into the desktop folder

play08:17

and then to see what's on our desktop as

play08:19

we can see in the gui we'll just simply

play08:20

type in ls to list the contents

play08:24

bam there it all is right there now

play08:26

we're gonna learn one more command so

play08:27

hang with me

play08:28

but so far we've done a lot the pwd

play08:31

command to see where we are

play08:32

the ls command to see what's around us

play08:34

what's in our directory

play08:35

and the cd command to change where we

play08:37

are but now how do we go

play08:39

back because like in the gui here it's

play08:41

pretty intuitive we got a back button up

play08:42

here we just go

play08:43

back and suddenly we're back to our

play08:45

directory we started in

play08:46

our home directory how do we do that

play08:48

same thing over here in the terminal

play08:50

it's actually super easy so again we're

play08:51

going to type in cd we're going to

play08:52

change our directory because we actually

play08:54

are changing our directory and then

play08:56

we'll do a space

play08:57

and all we're going to put in is dot dot

play08:59

so cd

play09:00

space dot dot hit enter and let's see

play09:02

what happens

play09:04

boom what happened let's type in pwd and

play09:08

see if it changed our directory

play09:10

totally did so again we were in home

play09:13

user

play09:14

89786 desktop we entered the cd

play09:17

command with dot dot and that dropped us

play09:20

back

play09:20

to home user 89786 now just for fun i

play09:23

wonder what will happen if we keep going

play09:25

backwards if we type in cd

play09:27

dot dot again i'll type in pwd where i'm

play09:29

at

play09:30

i'm at slash home now let's do cd once

play09:33

more

play09:34

where i'm at now pwd

play09:37

oh now instead of home i'm simply at

play09:40

forward slash

play09:41

and what this is is actually the root of

play09:43

the file system

play09:44

it's the end we reached the end and

play09:47

we'll talk more about that later

play09:48

but just for fun again that's all for

play09:50

fun right here

play09:52

enter the command ls let's list the

play09:53

contents of the root directory

play09:58

huh a lot of interesting files here

play10:00

we'll talk about all this later now real

play10:01

quick

play10:02

quiz for you let's see what you remember

play10:04

right now again if i print my working

play10:05

directory pwd

play10:07

i'm at the root forward slash what

play10:09

command or commands would i enter to get

play10:11

back

play10:12

here where we were to start with now

play10:14

there are two options really

play10:15

you can do it with one command or you

play10:17

can do it with two commands comment

play10:18

below with what you got now here

play10:20

we just scratched the surface we're

play10:22

going deeper into linux we're gonna get

play10:23

you prepped and ready to become a hacker

play10:25

but don't that diminish the fact that

play10:27

you did a lot today in this video we

play10:28

covered what linux is

play10:30

it's both a kernel and an operating

play10:32

system similar to windows and mac

play10:34

but it's faster more powerful and more

play10:36

secure and way more popular

play10:38

it wins that contest hands down

play10:40

especially with hackers

play10:41

we love it and we also covered some

play10:42

linux terminal commands we started to

play10:44

move away from the gui weaning ourselves

play10:46

of the gui

play10:47

and started typing away pwd lscd

play10:50

more to come and again massive shout out

play10:52

to the sponsor of the series

play10:54

hack the box academy hack the box

play10:55

academy which is obviously tied to hack

play10:57

the box

play10:58

it's different in that it's more of a

play10:59

guided i.t security platform and by the

play11:01

way all the commands i mentioned in this

play11:02

video will be covered in depth

play11:04

on hack the box academy and of course

play11:06

don't forget to hack the youtube

play11:07

algorithm today

play11:08

hit that like button subscribe

play11:10

notification bell comment let's hack

play11:11

youtube

play11:12

ethically of course yeah that's all i

play11:14

got

play11:15

i'll catch you guys next time

play11:28

[Music]

play11:32

you

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Linux BasicsHacking TutorialFree LabCommand LineParrot OSOpen SourceSecurity SkillsHack the BoxTerminal CommandsIT Security