All language subtitles for الإنجليزية (تم إنشاؤها تلقائيًا)_en_0_HELP__ (for when you suck at Linux) __ Linux for Hackers __ EP3(1080P_HD)

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic Download
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:04,240 --> 00:00:07,680 oh 2 00:00:05,839 --> 00:00:09,760 i need some help do you ever get that 3 00:00:07,680 --> 00:00:11,519 feeling when working with linux 4 00:00:09,760 --> 00:00:12,880 yeah all the time right now don't get me 5 00:00:11,519 --> 00:00:15,679 wrong linux is 6 00:00:12,880 --> 00:00:17,039 amazing but sometimes it's a bit of a 7 00:00:15,679 --> 00:00:18,560 beast isn't it 8 00:00:17,039 --> 00:00:20,000 like it's complex especially if you're 9 00:00:18,560 --> 00:00:21,279 just starting to use it all these 10 00:00:20,000 --> 00:00:22,560 commands you have to know 11 00:00:21,279 --> 00:00:24,800 all the different switches and ways you 12 00:00:22,560 --> 00:00:26,080 can use them help so that's what we're 13 00:00:24,800 --> 00:00:27,279 doing in this video when you're in the 14 00:00:26,080 --> 00:00:29,279 terminal when you're in the ceo line 15 00:00:27,279 --> 00:00:30,800 you're like i don't know what i'm doing 16 00:00:29,279 --> 00:00:31,679 how do you get help it's actually pretty 17 00:00:30,800 --> 00:00:32,960 cool and it's right there in the 18 00:00:31,679 --> 00:00:35,350 terminal i'll show you 19 00:00:32,960 --> 00:00:42,960 anyways yeah let's do it right now 20 00:00:35,350 --> 00:00:44,559 [Music] 21 00:00:42,960 --> 00:00:46,160 welcome to linux for hackers and 22 00:00:44,559 --> 00:00:47,120 everyone because everyone needs to learn 23 00:00:46,160 --> 00:00:48,640 linux right 24 00:00:47,120 --> 00:00:50,559 this is episode three and we're gonna 25 00:00:48,640 --> 00:00:51,440 cover quite a bit it's gonna be a fun 26 00:00:50,559 --> 00:00:52,640 one trust me 27 00:00:51,440 --> 00:00:54,000 there are three main things we're gonna 28 00:00:52,640 --> 00:00:55,199 cover in this video first i mean we're 29 00:00:54,000 --> 00:00:56,480 gonna get some help right i'll show you 30 00:00:55,199 --> 00:00:57,920 how to use a linux terminal 31 00:00:56,480 --> 00:00:59,440 to get help with any command you're 32 00:00:57,920 --> 00:01:00,559 using that way you don't feel so lost 33 00:00:59,440 --> 00:01:02,559 and stupid because i 34 00:01:00,559 --> 00:01:04,239 i feel that way all the time and this is 35 00:01:02,559 --> 00:01:05,760 a great way to kind of help that feeling 36 00:01:04,239 --> 00:01:06,240 it never really goes away but it does 37 00:01:05,760 --> 00:01:07,439 help it 38 00:01:06,240 --> 00:01:08,960 we're also going to take some time and 39 00:01:07,439 --> 00:01:09,360 get to know our linux terminal a bit 40 00:01:08,960 --> 00:01:11,200 better 41 00:01:09,360 --> 00:01:12,720 learn a bit more about them and third 42 00:01:11,200 --> 00:01:14,080 you know you know we're going to be 43 00:01:12,720 --> 00:01:15,439 learning some new commands today 44 00:01:14,080 --> 00:01:17,840 commands that will help us learn more 45 00:01:15,439 --> 00:01:19,920 about the linux system we're using 46 00:01:17,840 --> 00:01:21,680 yes are you ready like i've already had 47 00:01:19,920 --> 00:01:23,119 like 15 cups of coffee 48 00:01:21,680 --> 00:01:24,799 i'm ready how about you what are you 49 00:01:23,119 --> 00:01:26,560 drinking today i don't care get some 50 00:01:24,799 --> 00:01:28,159 coffee and let's do this now along with 51 00:01:26,560 --> 00:01:28,720 coffee to do this you'll also need some 52 00:01:28,159 --> 00:01:30,720 linux 53 00:01:28,720 --> 00:01:32,320 do you have linux let me give you some 54 00:01:30,720 --> 00:01:33,840 here's some free linux right now 55 00:01:32,320 --> 00:01:35,759 thanks to my sponsor hack the box 56 00:01:33,840 --> 00:01:38,400 academy you're getting access to a free 57 00:01:35,759 --> 00:01:39,280 linux lab right now to follow along and 58 00:01:38,400 --> 00:01:41,360 have fun while we're 59 00:01:39,280 --> 00:01:43,040 having fun yeah we're going to use their 60 00:01:41,360 --> 00:01:45,119 platform as a free linux playground just 61 00:01:43,040 --> 00:01:46,479 to go crazy so yeah click the link below 62 00:01:45,119 --> 00:01:49,360 get started 63 00:01:46,479 --> 00:01:50,560 and no time to waste coffee in hand 64 00:01:49,360 --> 00:01:54,079 linux launched 65 00:01:50,560 --> 00:01:56,159 let's do this 66 00:01:54,079 --> 00:01:58,079 right now now first as always we're 67 00:01:56,159 --> 00:01:59,360 going to spin up our free linux lab from 68 00:01:58,079 --> 00:02:00,240 hack the box academy 69 00:01:59,360 --> 00:02:03,119 i'm just going to search for that 70 00:02:00,240 --> 00:02:04,399 because i never remember the url 71 00:02:03,119 --> 00:02:06,159 but you got the link below so go ahead 72 00:02:04,399 --> 00:02:07,600 and click that and once you're logged in 73 00:02:06,159 --> 00:02:09,280 launch that lab and if you have no idea 74 00:02:07,600 --> 00:02:10,959 what i'm talking about that's okay go 75 00:02:09,280 --> 00:02:12,560 back to episode one i walk everyone 76 00:02:10,959 --> 00:02:13,440 through how to set this amazing lab up 77 00:02:12,560 --> 00:02:15,120 and once you're there 78 00:02:13,440 --> 00:02:16,879 watch episode two and then come back and 79 00:02:15,120 --> 00:02:18,800 watch episode three anyways let's keep 80 00:02:16,879 --> 00:02:20,239 going now first let's talk about mr 81 00:02:18,800 --> 00:02:21,040 terminal now we've gotten to know mr 82 00:02:20,239 --> 00:02:22,720 terminal pretty 83 00:02:21,040 --> 00:02:24,400 pretty well so far in the series we've 84 00:02:22,720 --> 00:02:26,000 used him a lot to do some cool things 85 00:02:24,400 --> 00:02:28,400 let's go ahead launch him he's the green 86 00:02:26,000 --> 00:02:29,680 almost yellow i'm not sure colorblind 87 00:02:28,400 --> 00:02:31,519 thing up here 88 00:02:29,680 --> 00:02:33,120 launch that so again you're no stranger 89 00:02:31,519 --> 00:02:34,800 you know him pretty well but you can 90 00:02:33,120 --> 00:02:36,160 always get to know someone better so 91 00:02:34,800 --> 00:02:38,160 let's do that a few things to know about 92 00:02:36,160 --> 00:02:39,200 mr terminal here real quick now first is 93 00:02:38,160 --> 00:02:41,680 that he's actually not 94 00:02:39,200 --> 00:02:42,640 a terminal he's a terminal emulator he's 95 00:02:41,680 --> 00:02:44,720 just pretending 96 00:02:42,640 --> 00:02:46,239 which begs the question what's a 97 00:02:44,720 --> 00:02:47,040 terminal what's this and it's kind of 98 00:02:46,239 --> 00:02:48,560 cool 99 00:02:47,040 --> 00:02:50,720 i want one i actually looked on ebay to 100 00:02:48,560 --> 00:02:52,239 go find some and i might get one this 101 00:02:50,720 --> 00:02:53,680 right here is an old-school terminal 102 00:02:52,239 --> 00:02:55,920 it's what you would use to interact with 103 00:02:53,680 --> 00:02:57,360 the computer the vt100 and when you see 104 00:02:55,920 --> 00:02:58,080 this and you think terminal i want you 105 00:02:57,360 --> 00:03:00,400 to think 106 00:02:58,080 --> 00:03:02,080 the keyboard the screen the monitor the 107 00:03:00,400 --> 00:03:03,519 physical things you're using to interact 108 00:03:02,080 --> 00:03:04,480 with the computer that's what that is 109 00:03:03,519 --> 00:03:05,760 and that's what they had to use back 110 00:03:04,480 --> 00:03:06,879 then right so now we don't have to use 111 00:03:05,760 --> 00:03:08,720 that thing goodness 112 00:03:06,879 --> 00:03:10,640 we have a terminal emulator a nice 113 00:03:08,720 --> 00:03:12,720 pretty gui window that pretends to be 114 00:03:10,640 --> 00:03:14,239 the physical keyboard and monitor now 115 00:03:12,720 --> 00:03:16,640 the terminal has one job 116 00:03:14,239 --> 00:03:19,440 to give us access to things like this 117 00:03:16,640 --> 00:03:20,959 our commands 118 00:03:19,440 --> 00:03:22,640 the things we use to interact with our 119 00:03:20,959 --> 00:03:23,599 operating system now that's a key point 120 00:03:22,640 --> 00:03:25,120 here and this is something that most 121 00:03:23,599 --> 00:03:27,120 people don't understand 122 00:03:25,120 --> 00:03:28,400 the commands and things we we use to 123 00:03:27,120 --> 00:03:31,680 interact with the computer 124 00:03:28,400 --> 00:03:33,680 that's not the terminal no no no that 125 00:03:31,680 --> 00:03:36,080 is the shell the shell is the user 126 00:03:33,680 --> 00:03:37,840 interface we use to interact with the 127 00:03:36,080 --> 00:03:39,680 operating system the linux kernel the 128 00:03:37,840 --> 00:03:41,519 terminal or the terminal emulator 129 00:03:39,680 --> 00:03:43,280 is what we use to interact with the 130 00:03:41,519 --> 00:03:45,120 shell again just kind of picturing the 131 00:03:43,280 --> 00:03:47,440 terminal emulator as being 132 00:03:45,120 --> 00:03:48,959 a physical device keyboard and monitor 133 00:03:47,440 --> 00:03:50,560 and the shell is our ui 134 00:03:48,959 --> 00:03:52,319 now there are different shells the one 135 00:03:50,560 --> 00:03:54,000 we're using right now is called 136 00:03:52,319 --> 00:03:55,840 bash you've probably heard of that right 137 00:03:54,000 --> 00:03:57,599 bash or born against shell 138 00:03:55,840 --> 00:03:59,040 it is by far the most common shell 139 00:03:57,599 --> 00:04:00,000 you'll see but real quick how do you 140 00:03:59,040 --> 00:04:02,239 know what shell you're 141 00:04:00,000 --> 00:04:04,000 using let's find out new command time 142 00:04:02,239 --> 00:04:05,920 are you ready 143 00:04:04,000 --> 00:04:07,680 came faster than you thought right let's 144 00:04:05,920 --> 00:04:08,959 do this now like everything there's more 145 00:04:07,680 --> 00:04:09,920 than one way to find out what shell 146 00:04:08,959 --> 00:04:11,519 you're using but the way we're going to 147 00:04:09,920 --> 00:04:12,080 find out right now is with the ps 148 00:04:11,519 --> 00:04:14,720 command 149 00:04:12,080 --> 00:04:16,239 ps stands for process status and it will 150 00:04:14,720 --> 00:04:17,120 simply list the processes running in 151 00:04:16,239 --> 00:04:19,440 your linux box 152 00:04:17,120 --> 00:04:21,199 and tell you what's up what's the status 153 00:04:19,440 --> 00:04:23,840 let's try it out ps is all you need 154 00:04:21,199 --> 00:04:24,880 enter boom right there we can see that 155 00:04:23,840 --> 00:04:27,280 one of our processes 156 00:04:24,880 --> 00:04:28,720 is indeed bash now others you might see 157 00:04:27,280 --> 00:04:32,160 will be zsh 158 00:04:28,720 --> 00:04:33,759 fish bat dog giraffe and i may have made 159 00:04:32,160 --> 00:04:35,120 a few of those up now one that you may 160 00:04:33,759 --> 00:04:36,400 not expect to be here right here in our 161 00:04:35,120 --> 00:04:37,919 phone box 162 00:04:36,400 --> 00:04:39,680 that blue icon go and click on that is 163 00:04:37,919 --> 00:04:40,000 that blue again i'm colorblind i'm not 164 00:04:39,680 --> 00:04:43,040 sure 165 00:04:40,000 --> 00:04:44,400 click on that this particular shell is 166 00:04:43,040 --> 00:04:45,680 powershell 167 00:04:44,400 --> 00:04:48,160 now why that's special is because 168 00:04:45,680 --> 00:04:49,919 powershell is windows microsoft what 169 00:04:48,160 --> 00:04:50,720 many might refer to as the opposite of 170 00:04:49,919 --> 00:04:52,560 linux which 171 00:04:50,720 --> 00:04:54,880 it's not really the case anymore but 172 00:04:52,560 --> 00:04:56,160 powershell runs on linux it's a 173 00:04:54,880 --> 00:04:57,520 shell it's a way of interacting with 174 00:04:56,160 --> 00:04:58,000 linux if i use that same command as 175 00:04:57,520 --> 00:05:01,199 before 176 00:04:58,000 --> 00:05:04,800 ps look at my process here 177 00:05:01,199 --> 00:05:05,759 instead of bash it's push pwsh which 178 00:05:04,800 --> 00:05:07,520 obviously stands for 179 00:05:05,759 --> 00:05:09,440 powershell now just a couple more get to 180 00:05:07,520 --> 00:05:11,600 know you things about mr terminal here 181 00:05:09,440 --> 00:05:12,800 now first what do you call mr terminal 182 00:05:11,600 --> 00:05:14,639 so you don't get made fun of in front of 183 00:05:12,800 --> 00:05:15,680 the other linux gurus well the answer is 184 00:05:14,639 --> 00:05:17,039 you can call them whatever you want 185 00:05:15,680 --> 00:05:20,400 people say the terminal 186 00:05:17,039 --> 00:05:21,919 bash the shell console even they use all 187 00:05:20,400 --> 00:05:22,479 these terms interchangeably when you 188 00:05:21,919 --> 00:05:23,919 launch 189 00:05:22,479 --> 00:05:26,240 this terminal emulator and you start 190 00:05:23,919 --> 00:05:27,919 typing away so feel free to use 191 00:05:26,240 --> 00:05:29,840 any of those but if you want to be super 192 00:05:27,919 --> 00:05:31,440 fancy and nerdy say actually sir 193 00:05:29,840 --> 00:05:33,360 this is the terminal emulator and we're 194 00:05:31,440 --> 00:05:35,840 using the bash 195 00:05:33,360 --> 00:05:37,199 shell so anyways if you want to be cool 196 00:05:35,840 --> 00:05:39,280 i'm not sure if that makes you cool 197 00:05:37,199 --> 00:05:40,479 in my book it does now last get to know 198 00:05:39,280 --> 00:05:42,000 your thing real quick 199 00:05:40,479 --> 00:05:43,520 when you launch the shell you'll notice 200 00:05:42,000 --> 00:05:46,400 that you already have some 201 00:05:43,520 --> 00:05:47,440 stuff there stuff you didn't put there 202 00:05:46,400 --> 00:05:49,199 what does all that mean 203 00:05:47,440 --> 00:05:50,639 this right here your user account who 204 00:05:49,199 --> 00:05:52,240 you are you'll normally see the ad 205 00:05:50,639 --> 00:05:53,759 symbol like we have here and then the 206 00:05:52,240 --> 00:05:55,600 host name of the linux server you're 207 00:05:53,759 --> 00:05:56,800 using or linux machine whatever it is 208 00:05:55,600 --> 00:05:57,440 and then you normally have right after 209 00:05:56,800 --> 00:05:59,520 that 210 00:05:57,440 --> 00:06:00,720 where you are in the file system what 211 00:05:59,520 --> 00:06:01,919 directory you're working in 212 00:06:00,720 --> 00:06:04,720 it tells you the same thing as if you 213 00:06:01,919 --> 00:06:06,080 typed in pwt or pwd 214 00:06:04,720 --> 00:06:08,080 to see where you are now you don't 215 00:06:06,080 --> 00:06:09,919 commonly see all this mess over here 216 00:06:08,080 --> 00:06:11,600 and it's not mess it's really cool i 217 00:06:09,919 --> 00:06:12,960 think that was custom from hack the box 218 00:06:11,600 --> 00:06:14,560 but right here is what you'll commonly 219 00:06:12,960 --> 00:06:17,440 see when you launch a 220 00:06:14,560 --> 00:06:19,039 shell a terminal bash i never know what 221 00:06:17,440 --> 00:06:20,240 to call it your username at the host 222 00:06:19,039 --> 00:06:22,080 name and where you are 223 00:06:20,240 --> 00:06:23,280 and then one more last thing you'll see 224 00:06:22,080 --> 00:06:24,880 right here before you start tapping in 225 00:06:23,280 --> 00:06:26,240 commands you have a dollar sign 226 00:06:24,880 --> 00:06:28,160 what the junk does that mean it means 227 00:06:26,240 --> 00:06:30,000 you are a user it means you're logged in 228 00:06:28,160 --> 00:06:30,880 as a user on the system and you may be 229 00:06:30,000 --> 00:06:32,400 thinking chuck 230 00:06:30,880 --> 00:06:34,400 isn't that always the case aren't you 231 00:06:32,400 --> 00:06:35,919 always logged in as a user yeah but 232 00:06:34,400 --> 00:06:37,919 sometimes you log in as the 233 00:06:35,919 --> 00:06:39,600 root user and with that he's always 234 00:06:37,919 --> 00:06:40,880 special right when your login is root 235 00:06:39,600 --> 00:06:42,479 it's going to have a 236 00:06:40,880 --> 00:06:43,759 pound sign there instead now you can't 237 00:06:42,479 --> 00:06:44,960 demonstrate that right now on the 238 00:06:43,759 --> 00:06:46,639 machine because you don't have rights to 239 00:06:44,960 --> 00:06:47,680 log in as you uh the root but i'll show 240 00:06:46,639 --> 00:06:48,639 you what it looks like real quick on one 241 00:06:47,680 --> 00:06:52,400 of my boxes here 242 00:06:48,639 --> 00:06:52,400 if i switch users to the root 243 00:06:53,039 --> 00:06:56,160 bam pound sign or hashtag however you 244 00:06:55,520 --> 00:06:57,280 want to look at it 245 00:06:56,160 --> 00:06:58,720 because it is important to know that 246 00:06:57,280 --> 00:07:00,080 you're logged in as the root whenever 247 00:06:58,720 --> 00:07:01,440 you're doing things it's a handy 248 00:07:00,080 --> 00:07:02,560 reminder because you do have godlike 249 00:07:01,440 --> 00:07:03,120 power at that point you got to be 250 00:07:02,560 --> 00:07:04,639 careful 251 00:07:03,120 --> 00:07:05,919 now i feel like you and mr terminal 252 00:07:04,639 --> 00:07:06,400 shell bash whatever you want to call 253 00:07:05,919 --> 00:07:07,840 them 254 00:07:06,400 --> 00:07:09,199 are getting along pretty well you know a 255 00:07:07,840 --> 00:07:10,479 lot about them now but the whole point 256 00:07:09,199 --> 00:07:11,680 of getting to know the shell is so you 257 00:07:10,479 --> 00:07:13,360 can really get to know 258 00:07:11,680 --> 00:07:14,720 the linux operating system so let's do 259 00:07:13,360 --> 00:07:15,120 that so here we go this is going to be 260 00:07:14,720 --> 00:07:17,280 quick 261 00:07:15,120 --> 00:07:18,319 get your coffee buckle your seat belts 262 00:07:17,280 --> 00:07:21,120 new command time 263 00:07:18,319 --> 00:07:22,560 new commands time we're gonna use a ton 264 00:07:21,120 --> 00:07:26,240 of them right now to get to know 265 00:07:22,560 --> 00:07:28,560 our os are you ready let's do this 266 00:07:26,240 --> 00:07:30,479 first can i see your id sir type in id 267 00:07:28,560 --> 00:07:33,280 id tells you all about 268 00:07:30,479 --> 00:07:33,919 you host name tells you the host name 269 00:07:33,280 --> 00:07:36,319 you 270 00:07:33,919 --> 00:07:37,680 name seemingly tells you almost nothing 271 00:07:36,319 --> 00:07:40,720 just says linux but it tells you a lot 272 00:07:37,680 --> 00:07:40,720 if you use other stuff with it 273 00:07:41,599 --> 00:07:48,400 it's cool ifconfig network stuff 274 00:07:45,199 --> 00:07:49,039 ip more network stuff and lots of 275 00:07:48,400 --> 00:07:52,960 options 276 00:07:49,039 --> 00:07:55,440 netstat the status of your network ss 277 00:07:52,960 --> 00:07:56,800 session stuff ps process stuff we 278 00:07:55,440 --> 00:07:58,400 already covered that who 279 00:07:56,800 --> 00:08:00,000 kind of the brother command of who am i 280 00:07:58,400 --> 00:08:00,560 but it tells you who else is logged into 281 00:08:00,000 --> 00:08:02,800 the system 282 00:08:00,560 --> 00:08:04,800 env environment variables we'll cover 283 00:08:02,800 --> 00:08:08,160 that later lsblk 284 00:08:04,800 --> 00:08:09,919 list blocks hard drive stuff lsusb are 285 00:08:08,160 --> 00:08:13,039 there any usbs plugged in 286 00:08:09,919 --> 00:08:13,680 no lsof this will list all the open 287 00:08:13,039 --> 00:08:17,199 files 288 00:08:13,680 --> 00:08:19,680 a lot okay did you get all that 289 00:08:17,199 --> 00:08:21,039 no of course you didn't i went too fast 290 00:08:19,680 --> 00:08:21,840 i went too fast because i want you to 291 00:08:21,039 --> 00:08:23,440 think 292 00:08:21,840 --> 00:08:25,599 i need help and right now i'm going to 293 00:08:23,440 --> 00:08:27,120 show you how to get that help 294 00:08:25,599 --> 00:08:28,400 so i quickly went through a lot of 295 00:08:27,120 --> 00:08:29,840 commands without really giving too much 296 00:08:28,400 --> 00:08:31,520 detail on those commands and let's be 297 00:08:29,840 --> 00:08:33,120 honest even if i gave you every detail 298 00:08:31,520 --> 00:08:34,159 about these commands you'd forget it all 299 00:08:33,120 --> 00:08:35,519 by next week right 300 00:08:34,159 --> 00:08:37,360 at least i would you're probably smarter 301 00:08:35,519 --> 00:08:38,399 than i am but anyways if you're like me 302 00:08:37,360 --> 00:08:40,240 you might need some help 303 00:08:38,399 --> 00:08:41,919 to remember all the stuff you have to 304 00:08:40,240 --> 00:08:42,640 remember which is almost impossible how 305 00:08:41,919 --> 00:08:44,560 do we do that 306 00:08:42,640 --> 00:08:47,279 to get help with pretty much any command 307 00:08:44,560 --> 00:08:50,240 out there we're going to consult the man 308 00:08:47,279 --> 00:08:51,760 the command is literally man oh man and 309 00:08:50,240 --> 00:08:53,360 then the command you're curious about 310 00:08:51,760 --> 00:08:55,200 let's say that you name command earlier 311 00:08:53,360 --> 00:08:58,000 we saw you name 312 00:08:55,200 --> 00:08:59,600 what the junk is that if we do that whoo 313 00:08:58,000 --> 00:09:01,680 we get a detailed manual of 314 00:08:59,600 --> 00:09:03,760 what the junk this command is uh 315 00:09:01,680 --> 00:09:04,240 description all these switches how to 316 00:09:03,760 --> 00:09:06,399 use it 317 00:09:04,240 --> 00:09:07,839 it's awesome right here built into linux 318 00:09:06,399 --> 00:09:08,080 i mean i can keep going here like it's 319 00:09:07,839 --> 00:09:10,880 just 320 00:09:08,080 --> 00:09:11,839 it's long and i'll hit q to jump out of 321 00:09:10,880 --> 00:09:13,200 there to quit 322 00:09:11,839 --> 00:09:15,040 so whenever you need help with any 323 00:09:13,200 --> 00:09:18,160 command just consult the man 324 00:09:15,040 --> 00:09:21,600 man ls man ip 325 00:09:18,160 --> 00:09:22,959 man ip anyways mature 326 00:09:21,600 --> 00:09:24,800 now there is another way to do this and 327 00:09:22,959 --> 00:09:26,959 it's it's a little bit cooler i think 328 00:09:24,800 --> 00:09:28,800 um let me clear my screen here with most 329 00:09:26,959 --> 00:09:30,640 commands you can do this and i'll use 330 00:09:28,800 --> 00:09:31,760 that same command as earlier you name 331 00:09:30,640 --> 00:09:34,240 if you're sitting here and you typed it 332 00:09:31,760 --> 00:09:34,959 out you're like huh what do i do now i 333 00:09:34,240 --> 00:09:36,800 forgot 334 00:09:34,959 --> 00:09:38,399 well you can ask for help right here you 335 00:09:36,800 --> 00:09:40,000 can either do dash h 336 00:09:38,399 --> 00:09:41,200 for help most commands will have that 337 00:09:40,000 --> 00:09:41,600 and if they don't have that they'll have 338 00:09:41,200 --> 00:09:44,080 dash 339 00:09:41,600 --> 00:09:44,880 dash help you can usually use either of 340 00:09:44,080 --> 00:09:46,959 those 341 00:09:44,880 --> 00:09:48,320 and when you do that you get some help 342 00:09:46,959 --> 00:09:49,600 now what's cool about this is it doesn't 343 00:09:48,320 --> 00:09:51,120 give you a full printed out 344 00:09:49,600 --> 00:09:52,480 novel right i mean sometimes you might 345 00:09:51,120 --> 00:09:53,519 want the novel to learn about it but 346 00:09:52,480 --> 00:09:53,920 sometimes you might just want to know 347 00:09:53,519 --> 00:09:55,200 hey 348 00:09:53,920 --> 00:09:57,120 what are the switches i can use for this 349 00:09:55,200 --> 00:09:58,880 command how do i use this and that's 350 00:09:57,120 --> 00:10:01,839 what this gives you now one more really 351 00:09:58,880 --> 00:10:03,680 super handy thing is what if you don't 352 00:10:01,839 --> 00:10:05,040 know what command you need to use 353 00:10:03,680 --> 00:10:08,160 like you have an idea of what you want 354 00:10:05,040 --> 00:10:09,519 to do but you don't remember the command 355 00:10:08,160 --> 00:10:10,800 there's a command for that just 356 00:10:09,519 --> 00:10:11,600 hopefully you don't forget this command 357 00:10:10,800 --> 00:10:14,399 because then you're 358 00:10:11,600 --> 00:10:15,839 you're screwed the command is apropos or 359 00:10:14,399 --> 00:10:18,079 a propos 360 00:10:15,839 --> 00:10:18,880 how i mentally construct that word every 361 00:10:18,079 --> 00:10:20,720 time i see it 362 00:10:18,880 --> 00:10:22,800 you simply type this in and you type in 363 00:10:20,720 --> 00:10:24,079 what you kind of want to do like 364 00:10:22,800 --> 00:10:25,279 maybe you're thinking man i really want 365 00:10:24,079 --> 00:10:26,800 to find out what's plugged into my 366 00:10:25,279 --> 00:10:28,640 computer usb 367 00:10:26,800 --> 00:10:30,320 i forgot what the command was to list 368 00:10:28,640 --> 00:10:32,000 that stuff let me just search for usb 369 00:10:30,320 --> 00:10:34,480 and my commands 370 00:10:32,000 --> 00:10:36,000 bam that's pretty cool right it'll do a 371 00:10:34,480 --> 00:10:37,760 keyword search through the commands and 372 00:10:36,000 --> 00:10:38,800 the documentation and say oh well here's 373 00:10:37,760 --> 00:10:40,480 all the usb stuff 374 00:10:38,800 --> 00:10:42,000 and right there at the top ls usb 375 00:10:40,480 --> 00:10:43,360 perfect let's say 376 00:10:42,000 --> 00:10:45,040 again like maybe i want to do some 377 00:10:43,360 --> 00:10:49,600 compression stuff i don't know 378 00:10:45,040 --> 00:10:53,200 so i'll do apropos i propose 379 00:10:49,600 --> 00:10:55,040 compress and i'll see what i can find 380 00:10:53,200 --> 00:10:56,320 and a bunch of stuff that will help me 381 00:10:55,040 --> 00:10:57,440 with file compression 382 00:10:56,320 --> 00:10:59,120 so i'm going to go ahead and stop the 383 00:10:57,440 --> 00:11:00,560 video right here i could go into more 384 00:10:59,120 --> 00:11:01,600 detail about these commands i showed you 385 00:11:00,560 --> 00:11:03,839 and everything but no 386 00:11:01,600 --> 00:11:05,760 no i want you to do that consult the man 387 00:11:03,839 --> 00:11:06,959 get into the man page the manual 388 00:11:05,760 --> 00:11:08,959 and find out about these commands 389 00:11:06,959 --> 00:11:11,120 yourself use the dash dash help 390 00:11:08,959 --> 00:11:12,399 dash h practice these commands and learn 391 00:11:11,120 --> 00:11:13,839 how to use them for yourself 392 00:11:12,399 --> 00:11:15,440 that's like really the biggest thing you 393 00:11:13,839 --> 00:11:16,000 learn in linux is how to learn for 394 00:11:15,440 --> 00:11:17,680 yourself 395 00:11:16,000 --> 00:11:19,680 you will always encounter tools or 396 00:11:17,680 --> 00:11:20,800 commands or whatever that you don't know 397 00:11:19,680 --> 00:11:22,320 how to use 398 00:11:20,800 --> 00:11:24,079 it's going to happen it'll happen less 399 00:11:22,320 --> 00:11:25,519 as you deal with linux more but it's 400 00:11:24,079 --> 00:11:26,240 still going to happen so you need to 401 00:11:25,519 --> 00:11:28,240 know 402 00:11:26,240 --> 00:11:30,240 how to get help so practice that right 403 00:11:28,240 --> 00:11:31,680 now that's your homework and also here 404 00:11:30,240 --> 00:11:32,640 on hack the box academy they're going to 405 00:11:31,680 --> 00:11:34,800 give you a nice 406 00:11:32,640 --> 00:11:36,160 fun quiz to test your knowledge and it's 407 00:11:34,800 --> 00:11:37,440 it's a toughy you're going to have to 408 00:11:36,160 --> 00:11:38,640 consult the man you're going to have to 409 00:11:37,440 --> 00:11:39,519 get some help so i'm going to jump in 410 00:11:38,640 --> 00:11:40,240 there and show you what it looks like 411 00:11:39,519 --> 00:11:41,360 real quick 412 00:11:40,240 --> 00:11:43,040 they'll give you more information about 413 00:11:41,360 --> 00:11:44,320 the commands we listed don't cheat 414 00:11:43,040 --> 00:11:45,839 though don't look at that 415 00:11:44,320 --> 00:11:47,360 it doesn't give you too much on it but 416 00:11:45,839 --> 00:11:48,240 scroll down to the bottom here and they 417 00:11:47,360 --> 00:11:49,760 got some questions 418 00:11:48,240 --> 00:11:51,360 if you get these questions right you'll 419 00:11:49,760 --> 00:11:52,800 earn back some cubes 420 00:11:51,360 --> 00:11:54,560 don't know what cubes are we'll go watch 421 00:11:52,800 --> 00:11:56,240 episode one i explained it there 422 00:11:54,560 --> 00:11:58,160 anyways see what you got and if you need 423 00:11:56,240 --> 00:12:00,079 help that's fine comment below we'll get 424 00:11:58,160 --> 00:12:00,560 you some help anyways give this a solid 425 00:12:00,079 --> 00:12:01,440 try 426 00:12:00,560 --> 00:12:03,120 and let me know what you think in the 427 00:12:01,440 --> 00:12:04,240 comments below anyways that's all i have 428 00:12:03,120 --> 00:12:06,240 today guys now i 429 00:12:04,240 --> 00:12:08,079 will still have a challenge a quiz for 430 00:12:06,240 --> 00:12:08,720 you to take extra above and beyond what 431 00:12:08,079 --> 00:12:11,040 you see here 432 00:12:08,720 --> 00:12:13,680 the first person who scores a 100 on 433 00:12:11,040 --> 00:12:15,760 that quiz i'll give you some free coffee 434 00:12:13,680 --> 00:12:17,200 you need it and again a huge massive 435 00:12:15,760 --> 00:12:18,880 super shout out to the sponsor of this 436 00:12:17,200 --> 00:12:20,639 video and this entire series 437 00:12:18,880 --> 00:12:22,399 hack the box academy you can sign up for 438 00:12:20,639 --> 00:12:24,560 the linux foundation's course for free 439 00:12:22,399 --> 00:12:26,160 right now link below and use that lab to 440 00:12:24,560 --> 00:12:27,760 follow along with this video series not 441 00:12:26,160 --> 00:12:29,040 to mention they have a ton 442 00:12:27,760 --> 00:12:31,360 just a ton of other stuff you can go 443 00:12:29,040 --> 00:12:32,639 through to prepare yourself for hacking 444 00:12:31,360 --> 00:12:34,480 this is their learn how to hack 445 00:12:32,639 --> 00:12:36,560 platform so you can graduate to their 446 00:12:34,480 --> 00:12:38,480 hack the box platform where you actually 447 00:12:36,560 --> 00:12:40,639 hack so show them some love get signed 448 00:12:38,480 --> 00:12:42,240 up and um speaking of hacking 449 00:12:40,639 --> 00:12:43,680 have you hacked the youtube algorithm 450 00:12:42,240 --> 00:12:45,040 today like have you 451 00:12:43,680 --> 00:12:46,399 make sure you like this video hit the 452 00:12:45,040 --> 00:12:47,440 subscribe button notification bell 453 00:12:46,399 --> 00:12:49,680 comment below 454 00:12:47,440 --> 00:12:51,360 let's hack youtube today ethically of 455 00:12:49,680 --> 00:12:54,000 course but yeah 456 00:12:51,360 --> 00:13:06,510 that's all i got i'll catch you guys 457 00:12:54,000 --> 00:13:12,959 next time 458 00:13:06,510 --> 00:13:15,040 [Music] 459 00:13:12,959 --> 00:13:15,040 you 30734

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.