All language subtitles for DOS Commands You Should Know

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
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
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish Download
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,000 --> 00:00:03,780 So today we're going to be firing up the 2 00:00:02,340 --> 00:00:06,060 command prompt and I'm going to show you 3 00:00:03,780 --> 00:00:09,940 some really helpful commands that you 4 00:00:06,060 --> 00:00:11,460 probably should know about stay tuned 5 00:00:09,940 --> 00:00:14,639 [Music] 6 00:00:11,460 --> 00:00:16,740 the term dos simply means Disk Operating 7 00:00:14,639 --> 00:00:19,560 System that just means an operating 8 00:00:16,740 --> 00:00:21,779 system that runs from a disk however 9 00:00:19,560 --> 00:00:24,900 when most people are referring to Dos 10 00:00:21,779 --> 00:00:26,580 they're referring to MS-DOS and as you 11 00:00:24,900 --> 00:00:29,340 probably guessed that stood for 12 00:00:26,580 --> 00:00:31,019 Microsoft Disk Operating System yeah 13 00:00:29,340 --> 00:00:33,360 that's right back in the early days 14 00:00:31,019 --> 00:00:35,219 Microsoft really had a good imagination 15 00:00:33,360 --> 00:00:37,140 when they were naming their products 16 00:00:35,219 --> 00:00:40,079 they literally named their operating 17 00:00:37,140 --> 00:00:41,820 system operating system but you know 18 00:00:40,079 --> 00:00:43,559 what to be perfectly honest with you I 19 00:00:41,820 --> 00:00:46,739 don't think much has changed you know we 20 00:00:43,559 --> 00:00:49,559 have Windows 7 Windows 8 Windows not oh 21 00:00:46,739 --> 00:00:53,520 wait not never mind let's not go there 22 00:00:49,559 --> 00:00:55,559 let's get back to Dos dos or MS-DOS is 23 00:00:53,520 --> 00:00:57,960 the operating system PCS had before 24 00:00:55,559 --> 00:01:00,300 windows in fact it's the operating 25 00:00:57,960 --> 00:01:03,000 system PCS had with Windows because 26 00:01:00,300 --> 00:01:06,060 until Windows XP was released Windows 27 00:01:03,000 --> 00:01:08,460 literally ran on top of Dos today on 28 00:01:06,060 --> 00:01:11,159 Modern systems the only Remnant we have 29 00:01:08,460 --> 00:01:13,200 of MS-DOS is the command prompt even 30 00:01:11,159 --> 00:01:16,080 that Microsoft is trying to take away 31 00:01:13,200 --> 00:01:18,000 with the Powershell but luckily we still 32 00:01:16,080 --> 00:01:20,220 have the good old command prompt and 33 00:01:18,000 --> 00:01:22,619 while you can do a lot of things from 34 00:01:20,220 --> 00:01:24,720 within Windows there's no replacing the 35 00:01:22,619 --> 00:01:27,119 command prompt for many tasks in Windows 36 00:01:24,720 --> 00:01:29,400 machines so that's what we're going to 37 00:01:27,119 --> 00:01:31,920 be doing today but first we got to pay 38 00:01:29,400 --> 00:01:34,439 some bills so check out today's sponsor 39 00:01:31,920 --> 00:01:37,259 is your copy of Windows 10 unactivated 40 00:01:34,439 --> 00:01:40,320 well it doesn't have to be because with 41 00:01:37,259 --> 00:01:42,540 today's sponsor VIP SCD key you can get 42 00:01:40,320 --> 00:01:44,759 a valid Windows 10 license for under 20 43 00:01:42,540 --> 00:01:46,920 dollars stop dealing with that stupid 44 00:01:44,759 --> 00:01:49,140 watermark on the desktop the valid 45 00:01:46,920 --> 00:01:51,119 license for Windows 10. also with an 46 00:01:49,140 --> 00:01:53,520 activated copy of Windows 10 you can 47 00:01:51,119 --> 00:01:55,079 upgrade to Windows 11 for free just go 48 00:01:53,520 --> 00:01:57,119 to the link in the description below and 49 00:01:55,079 --> 00:01:59,700 pick up a valid Windows 10 license key 50 00:01:57,119 --> 00:02:02,460 during checkout use the code cyber CPU 51 00:01:59,700 --> 00:02:04,320 for a 25 discount once you have your key 52 00:02:02,460 --> 00:02:06,000 go to your activation settings in 53 00:02:04,320 --> 00:02:08,099 Windows 10 and click on the link that 54 00:02:06,000 --> 00:02:09,840 says change product key enter the 55 00:02:08,099 --> 00:02:12,060 product key you just purchased and hit 56 00:02:09,840 --> 00:02:13,739 activate now you don't have to deal with 57 00:02:12,060 --> 00:02:15,720 that stupid Watermark that come with 58 00:02:13,739 --> 00:02:19,260 running an unactivated copy of Windows 59 00:02:15,720 --> 00:02:21,420 10. now on with the video so the first 60 00:02:19,260 --> 00:02:23,580 thing we should probably do is cover 61 00:02:21,420 --> 00:02:25,860 some of the basics of the command prompt 62 00:02:23,580 --> 00:02:28,260 so let's jump on the computer and I'll 63 00:02:25,860 --> 00:02:30,000 show you a few things okay so the first 64 00:02:28,260 --> 00:02:31,800 thing that we need to do is open the 65 00:02:30,000 --> 00:02:33,360 command prompt up and to do that go 66 00:02:31,800 --> 00:02:35,520 ahead and click on your start button and 67 00:02:33,360 --> 00:02:36,780 just type CMD and then from here there's 68 00:02:35,520 --> 00:02:38,220 a couple different ways we can launch 69 00:02:36,780 --> 00:02:40,200 the command prompt we can either just 70 00:02:38,220 --> 00:02:41,459 click on the app and that'll give us the 71 00:02:40,200 --> 00:02:43,500 command prompt with our regular 72 00:02:41,459 --> 00:02:44,819 permissions or we can run it as 73 00:02:43,500 --> 00:02:46,980 administrator which will give you the 74 00:02:44,819 --> 00:02:49,200 ability to run commands at the highest 75 00:02:46,980 --> 00:02:50,519 privileges that are possible from within 76 00:02:49,200 --> 00:02:51,900 command prompt so we're going to go 77 00:02:50,519 --> 00:02:54,540 ahead and run this one as administrator 78 00:02:51,900 --> 00:02:56,040 so once we do that it wants you to say 79 00:02:54,540 --> 00:02:57,959 yes to the user account control go ahead 80 00:02:56,040 --> 00:03:00,239 and hit yes and it'll fire up your 81 00:02:57,959 --> 00:03:01,680 command prompt now from here there's a 82 00:03:00,239 --> 00:03:03,540 few things that we need to know to be 83 00:03:01,680 --> 00:03:05,580 able to kind of move around the command 84 00:03:03,540 --> 00:03:06,959 prompt and the first one is how to get 85 00:03:05,580 --> 00:03:08,640 into different directories and stuff 86 00:03:06,959 --> 00:03:10,739 like that and for that we use the 87 00:03:08,640 --> 00:03:12,840 command CD and that just means change 88 00:03:10,739 --> 00:03:14,340 directory and then we want to type in 89 00:03:12,840 --> 00:03:16,140 which directory we want to change to 90 00:03:14,340 --> 00:03:19,140 from this point so what I'm going to do 91 00:03:16,140 --> 00:03:21,000 is just hit the backslash command which 92 00:03:19,140 --> 00:03:23,400 stands for root and hit enter and 93 00:03:21,000 --> 00:03:26,459 that'll give us the root of our C drive 94 00:03:23,400 --> 00:03:27,840 or the very beginning of our C drive and 95 00:03:26,459 --> 00:03:30,000 then from there we want to be able to 96 00:03:27,840 --> 00:03:32,400 know what's inside the C drive for that 97 00:03:30,000 --> 00:03:34,260 we just type dir for directory and 98 00:03:32,400 --> 00:03:36,720 that'll give us a list of all the files 99 00:03:34,260 --> 00:03:38,940 that are in our C drive now 100 00:03:36,720 --> 00:03:41,940 alternatively what you could also do is 101 00:03:38,940 --> 00:03:44,400 type dir space and then put forward 102 00:03:41,940 --> 00:03:46,560 slash a and what that does is it'll give 103 00:03:44,400 --> 00:03:48,959 you every file of any attribute and 104 00:03:46,560 --> 00:03:50,519 it'll it'll include system files hidden 105 00:03:48,959 --> 00:03:52,860 files and things of that nature so if we 106 00:03:50,519 --> 00:03:54,959 hit enter as you can see there's a much 107 00:03:52,860 --> 00:03:56,459 bigger list now inside of our C drive 108 00:03:54,959 --> 00:03:58,019 right here of all the different files 109 00:03:56,459 --> 00:03:59,580 that we couldn't see before now 110 00:03:58,019 --> 00:04:02,400 alternatively I'm going to go ahead and 111 00:03:59,580 --> 00:04:04,980 hit CD Windows here to go into the 112 00:04:02,400 --> 00:04:07,080 windows directory now if you type dir at 113 00:04:04,980 --> 00:04:09,360 this point and hit enter as you can see 114 00:04:07,080 --> 00:04:10,920 there's a whole bunch of files and it 115 00:04:09,360 --> 00:04:12,360 Scrolls through a whole bunch of pages 116 00:04:10,920 --> 00:04:14,400 of files but because there's a lot of 117 00:04:12,360 --> 00:04:15,840 files within your windows directory if 118 00:04:14,400 --> 00:04:17,479 you want to break this down and make a 119 00:04:15,840 --> 00:04:20,880 little bit easier you can type dir 120 00:04:17,479 --> 00:04:22,800 switch for or forward slash and then the 121 00:04:20,880 --> 00:04:24,960 letter P and this will be for page and 122 00:04:22,800 --> 00:04:26,699 then when you hit enter it'll stop after 123 00:04:24,960 --> 00:04:28,860 one page is complete so as you can see 124 00:04:26,699 --> 00:04:30,840 it starts here and it comes down and 125 00:04:28,860 --> 00:04:32,520 says press any key to continue then when 126 00:04:30,840 --> 00:04:34,680 you press the key it goes on to the next 127 00:04:32,520 --> 00:04:36,360 page now if you ever want to cancel a 128 00:04:34,680 --> 00:04:38,100 command that's in the middle of doing 129 00:04:36,360 --> 00:04:40,979 what it's doing like we are doing right 130 00:04:38,100 --> 00:04:42,600 now just so go ahead and hit Ctrl C and 131 00:04:40,979 --> 00:04:45,479 that'll cancel the command and now we 132 00:04:42,600 --> 00:04:46,740 can also type CD space dot dot if we 133 00:04:45,479 --> 00:04:48,600 want to go back to the previous 134 00:04:46,740 --> 00:04:50,460 directory so we're going to go ahead and 135 00:04:48,600 --> 00:04:52,440 hit enter and now we're back to the root 136 00:04:50,460 --> 00:04:55,560 directory so now what we're going to do 137 00:04:52,440 --> 00:04:57,900 is I want to go ahead and navigate to my 138 00:04:55,560 --> 00:05:00,479 desktop so to do that we have to go into 139 00:04:57,900 --> 00:05:02,880 the users directory so we go CD 140 00:05:00,479 --> 00:05:04,860 users and hit enter that'll give us into 141 00:05:02,880 --> 00:05:06,900 the users directory and then if you want 142 00:05:04,860 --> 00:05:09,419 you can run a directory again to see 143 00:05:06,900 --> 00:05:10,979 what's in this directory and then hit 144 00:05:09,419 --> 00:05:14,160 enter and you can see we have two 145 00:05:10,979 --> 00:05:16,080 folders We have the public folder and my 146 00:05:14,160 --> 00:05:18,960 profile folder so for that we're going 147 00:05:16,080 --> 00:05:21,479 to go ahead and hit CD rich enter and 148 00:05:18,960 --> 00:05:23,639 that'll go into my profile and if we run 149 00:05:21,479 --> 00:05:25,020 a directory again it'll show us all the 150 00:05:23,639 --> 00:05:27,600 different folders from within that 151 00:05:25,020 --> 00:05:29,280 directory now here's another trick that 152 00:05:27,600 --> 00:05:31,620 you can use while you're moving through 153 00:05:29,280 --> 00:05:34,139 the command prompt and if you type in CD 154 00:05:31,620 --> 00:05:36,000 and just the first letter of the folder 155 00:05:34,139 --> 00:05:37,440 you want to go into so we want to go to 156 00:05:36,000 --> 00:05:40,259 desktop so in this case we're going to 157 00:05:37,440 --> 00:05:42,539 hit D if we hit the tab key it'll auto 158 00:05:40,259 --> 00:05:44,699 complete the word for us now as you 159 00:05:42,539 --> 00:05:46,380 notice we also have desktop documents 160 00:05:44,699 --> 00:05:48,419 and downloads well what if you wanted to 161 00:05:46,380 --> 00:05:50,340 go to downloads well if you just hit tab 162 00:05:48,419 --> 00:05:52,220 multiple times you can go ahead and 163 00:05:50,340 --> 00:05:55,020 it'll scroll through all the different 164 00:05:52,220 --> 00:05:56,699 directories that are named starting with 165 00:05:55,020 --> 00:05:57,960 the letter D now if you don't want to 166 00:05:56,699 --> 00:06:00,060 have to worry about that if you want to 167 00:05:57,960 --> 00:06:02,759 go directly to desktop you can always 168 00:06:00,060 --> 00:06:04,500 type D es or the first few letters in 169 00:06:02,759 --> 00:06:06,060 the name and hit Tab and it'll go 170 00:06:04,500 --> 00:06:08,220 straight to it then when you hit enter 171 00:06:06,060 --> 00:06:09,840 as you can see we're now in the desktop 172 00:06:08,220 --> 00:06:11,639 now the First Command that I want to 173 00:06:09,840 --> 00:06:13,740 show you here is how to create a 174 00:06:11,639 --> 00:06:15,660 directory so say we want to create a new 175 00:06:13,740 --> 00:06:18,419 directory on our desktop now to do that 176 00:06:15,660 --> 00:06:21,120 we're going to type MK for make and then 177 00:06:18,419 --> 00:06:22,860 dir for directory and then hit a space 178 00:06:21,120 --> 00:06:23,940 and then go ahead and name the directory 179 00:06:22,860 --> 00:06:26,400 whatever you want to name it so I'm 180 00:06:23,940 --> 00:06:29,039 going to write mine test and hit enter 181 00:06:26,400 --> 00:06:32,580 and as you can see right here we just 182 00:06:29,039 --> 00:06:34,440 created a folder on our desktop now 183 00:06:32,580 --> 00:06:36,419 let's say we want to move a file into 184 00:06:34,440 --> 00:06:38,280 that folder so as you can see right here 185 00:06:36,419 --> 00:06:40,380 we have our test document then we want 186 00:06:38,280 --> 00:06:42,720 to move this test document into our test 187 00:06:40,380 --> 00:06:45,000 folder so to do that all we do is type 188 00:06:42,720 --> 00:06:49,620 move space 189 00:06:45,000 --> 00:06:50,819 test dot txt space and then type the 190 00:06:49,620 --> 00:06:52,500 name of the folder you want to move it 191 00:06:50,819 --> 00:06:54,000 into so in this case it's going to be 192 00:06:52,500 --> 00:06:56,160 test 193 00:06:54,000 --> 00:06:58,199 and then we hit enter and it'll go ahead 194 00:06:56,160 --> 00:07:00,840 and move that file into that folder and 195 00:06:58,199 --> 00:07:03,419 as you can see it did in fact move the 196 00:07:00,840 --> 00:07:04,860 test file into the test folder probably 197 00:07:03,419 --> 00:07:06,360 should have named them different names 198 00:07:04,860 --> 00:07:08,940 to make it a little bit less confusing 199 00:07:06,360 --> 00:07:11,160 but hopefully you got it there now if we 200 00:07:08,940 --> 00:07:13,979 navigate into the test directory so if 201 00:07:11,160 --> 00:07:15,780 we go CD test it'll put us into that 202 00:07:13,979 --> 00:07:17,400 directory and then we can run a 203 00:07:15,780 --> 00:07:18,720 directory if we wanted to to see what's 204 00:07:17,400 --> 00:07:19,860 in it and as you can see we have the 205 00:07:18,720 --> 00:07:22,020 test text 206 00:07:19,860 --> 00:07:23,699 and now let's say we want to copy this 207 00:07:22,020 --> 00:07:25,919 to somewhere else say I want to copy it 208 00:07:23,699 --> 00:07:28,020 to my downloads folder so what I can do 209 00:07:25,919 --> 00:07:29,460 is I can write in 210 00:07:28,020 --> 00:07:31,560 copy 211 00:07:29,460 --> 00:07:34,740 and then I'm going to write 212 00:07:31,560 --> 00:07:36,780 test text space so an easy way to get 213 00:07:34,740 --> 00:07:40,319 into your downloads folder would be just 214 00:07:36,780 --> 00:07:45,479 to Simply say you want to go to root 215 00:07:40,319 --> 00:07:48,240 users root Rich root 216 00:07:45,479 --> 00:07:49,740 downloads and then hit enter and it'll 217 00:07:48,240 --> 00:07:51,539 go ahead and copy the file into your 218 00:07:49,740 --> 00:07:53,940 downloads folder so if we were to click 219 00:07:51,539 --> 00:07:56,160 right here and go into our downloads as 220 00:07:53,940 --> 00:07:58,020 you can see there's our test file right 221 00:07:56,160 --> 00:07:59,280 there so when you're working in the 222 00:07:58,020 --> 00:08:01,199 command prompt you can always use 223 00:07:59,280 --> 00:08:04,080 another Command 2 to help you out so if 224 00:08:01,199 --> 00:08:05,580 you type in help and then space and then 225 00:08:04,080 --> 00:08:06,900 whatever the name of the command is that 226 00:08:05,580 --> 00:08:09,720 you want to get help with like in this 227 00:08:06,900 --> 00:08:11,220 case we'll type dir and hit enter it'll 228 00:08:09,720 --> 00:08:13,740 go ahead and give you the help file 229 00:08:11,220 --> 00:08:15,840 associated with that specific command 230 00:08:13,740 --> 00:08:17,160 and as you can see there's several Pages 231 00:08:15,840 --> 00:08:19,020 here so you can kind of go through here 232 00:08:17,160 --> 00:08:21,120 and see all of the different switches 233 00:08:19,020 --> 00:08:23,280 that you can use with the dir command 234 00:08:21,120 --> 00:08:25,440 and if you hit enter again it'll go and 235 00:08:23,280 --> 00:08:28,139 finish at the end if for whatever reason 236 00:08:25,440 --> 00:08:30,479 the help command doesn't give you the 237 00:08:28,139 --> 00:08:31,979 help file associated with that command 238 00:08:30,479 --> 00:08:34,860 you can also do it a different way too 239 00:08:31,979 --> 00:08:37,020 if you type dir switch question mark and 240 00:08:34,860 --> 00:08:38,580 hit enter it'll also give you the same 241 00:08:37,020 --> 00:08:40,860 thing so there's a couple different ways 242 00:08:38,580 --> 00:08:42,899 to be able to get information on a 243 00:08:40,860 --> 00:08:44,219 command that you're using so the last 244 00:08:42,899 --> 00:08:46,980 command that I'm going to show you in 245 00:08:44,219 --> 00:08:49,080 our basic overview here is a really 246 00:08:46,980 --> 00:08:50,880 important one and that one is CLS and it 247 00:08:49,080 --> 00:08:52,440 stands for clear screen and if you hit 248 00:08:50,880 --> 00:08:54,420 enter it'll go ahead and clear the 249 00:08:52,440 --> 00:08:55,920 screen for you this will help to kind of 250 00:08:54,420 --> 00:08:57,000 clean things up if you have a bunch of 251 00:08:55,920 --> 00:08:57,959 commands that you've been running at 252 00:08:57,000 --> 00:08:59,760 once 253 00:08:57,959 --> 00:09:02,580 okay so now that we've covered the 254 00:08:59,760 --> 00:09:04,200 basics sometimes you might need more 255 00:09:02,580 --> 00:09:06,720 elevated privileges to run certain 256 00:09:04,200 --> 00:09:08,700 commands and sometimes you might not but 257 00:09:06,720 --> 00:09:10,440 let me show you how you can open the 258 00:09:08,700 --> 00:09:12,060 command prompt in different ways in 259 00:09:10,440 --> 00:09:14,519 order to get the Privileges that you 260 00:09:12,060 --> 00:09:16,260 need let's get back on the computer okay 261 00:09:14,519 --> 00:09:18,060 so we're going to go ahead and close the 262 00:09:16,260 --> 00:09:19,680 command prompt here and like I showed 263 00:09:18,060 --> 00:09:22,260 you before if you hit start and you type 264 00:09:19,680 --> 00:09:23,760 CMD you can just click on the command 265 00:09:22,260 --> 00:09:25,260 prompt normal and that'll just give you 266 00:09:23,760 --> 00:09:27,959 a normal command prompt that doesn't 267 00:09:25,260 --> 00:09:30,120 have any elevated privileges and if you 268 00:09:27,959 --> 00:09:31,740 click on run as administrator it'll give 269 00:09:30,120 --> 00:09:34,440 you an Administrator Command Prompt 270 00:09:31,740 --> 00:09:35,940 however let's just say you don't ever 271 00:09:34,440 --> 00:09:37,440 want to have to deal with opening a 272 00:09:35,940 --> 00:09:39,420 regular command prompt and every time 273 00:09:37,440 --> 00:09:41,640 you open it you just want it to run as 274 00:09:39,420 --> 00:09:43,260 administrator let me show you a really 275 00:09:41,640 --> 00:09:45,660 cool way to be able to make that happen 276 00:09:43,260 --> 00:09:48,540 so go ahead and right click on command 277 00:09:45,660 --> 00:09:50,100 prompt and click on open file location 278 00:09:48,540 --> 00:09:51,959 and then from there you'll get the 279 00:09:50,100 --> 00:09:53,279 shortcut for your command prompt and 280 00:09:51,959 --> 00:09:55,440 there all you got to do is right click 281 00:09:53,279 --> 00:09:57,180 click on properties and then from 282 00:09:55,440 --> 00:09:58,740 properties you want to click on Advanced 283 00:09:57,180 --> 00:10:00,660 and then from Advanced you want to check 284 00:09:58,740 --> 00:10:03,120 run as administrator then go ahead and 285 00:10:00,660 --> 00:10:04,800 hit OK hit OK again and then you can go 286 00:10:03,120 --> 00:10:06,720 ahead and close all this and at this 287 00:10:04,800 --> 00:10:08,160 point now if you type in CMD and you 288 00:10:06,720 --> 00:10:10,140 just click on command prompt like normal 289 00:10:08,160 --> 00:10:12,420 It'll ask you for administrator 290 00:10:10,140 --> 00:10:14,459 permissions and it'll open up an admin 291 00:10:12,420 --> 00:10:16,380 version of the command prompt however 292 00:10:14,459 --> 00:10:18,899 there's another way that you can do this 293 00:10:16,380 --> 00:10:20,820 as well that works really well so let's 294 00:10:18,899 --> 00:10:22,260 say you don't want to use the old CMD 295 00:10:20,820 --> 00:10:24,120 command but you want to use the new 296 00:10:22,260 --> 00:10:26,700 terminal command so if you open up 297 00:10:24,120 --> 00:10:29,220 terminal here as you can see it defaults 298 00:10:26,700 --> 00:10:30,540 into Powershell which is fine but if you 299 00:10:29,220 --> 00:10:32,279 want a command prompt you can click on 300 00:10:30,540 --> 00:10:33,720 this little tab right here and you can 301 00:10:32,279 --> 00:10:35,339 run a command prompt right there and 302 00:10:33,720 --> 00:10:37,920 it'll give you a regular command prompt 303 00:10:35,339 --> 00:10:39,959 however let's say you want an admin 304 00:10:37,920 --> 00:10:42,240 command prompt to be able to open when 305 00:10:39,959 --> 00:10:43,860 you open it in terminal to do that all 306 00:10:42,240 --> 00:10:46,079 you do is you hit this little arrow down 307 00:10:43,860 --> 00:10:47,459 right here go into settings and there's 308 00:10:46,079 --> 00:10:48,959 a couple different ways you can do this 309 00:10:47,459 --> 00:10:51,300 you can click on command prompt up 310 00:10:48,959 --> 00:10:53,700 scroll down and hit run this profile as 311 00:10:51,300 --> 00:10:56,040 administrator and what that'll do is 312 00:10:53,700 --> 00:10:57,959 once you hit save every time you open 313 00:10:56,040 --> 00:11:01,200 command prompt at this point it'll 314 00:10:57,959 --> 00:11:02,579 always ask for your user account control 315 00:11:01,200 --> 00:11:04,620 in order to give it administrator 316 00:11:02,579 --> 00:11:06,720 privileges to open an admin command 317 00:11:04,620 --> 00:11:09,060 prompt or you can also do this 318 00:11:06,720 --> 00:11:10,320 alternatively is if we go down to 319 00:11:09,060 --> 00:11:12,959 command prompt we're going to go ahead 320 00:11:10,320 --> 00:11:15,000 and uncheck this hit save and then I'm 321 00:11:12,959 --> 00:11:16,800 going to go ahead and click on the 322 00:11:15,000 --> 00:11:18,899 command prompt go down to add new 323 00:11:16,800 --> 00:11:21,060 profile here and then what we want to do 324 00:11:18,899 --> 00:11:22,560 is duplicate a profile so the for the 325 00:11:21,060 --> 00:11:24,120 duplicate profile we're going to select 326 00:11:22,560 --> 00:11:26,220 command prompt and we're going to go 327 00:11:24,120 --> 00:11:27,899 ahead and say duplicate and then from 328 00:11:26,220 --> 00:11:30,120 here for the name we're going to rename 329 00:11:27,899 --> 00:11:32,459 this instead of just saying copy we're 330 00:11:30,120 --> 00:11:34,500 going to rename this to 331 00:11:32,459 --> 00:11:36,959 admin and then we're going to scroll 332 00:11:34,500 --> 00:11:39,060 down and we're going to check run this 333 00:11:36,959 --> 00:11:41,220 profile as administrator and then go 334 00:11:39,060 --> 00:11:42,540 ahead and hit save right there now at 335 00:11:41,220 --> 00:11:44,220 that point you'll have two different 336 00:11:42,540 --> 00:11:45,540 selections so if you click on this 337 00:11:44,220 --> 00:11:47,279 little arrow right here as you can see 338 00:11:45,540 --> 00:11:49,800 you'll have command prompt or you'll 339 00:11:47,279 --> 00:11:51,720 have command prompt as admin now 340 00:11:49,800 --> 00:11:53,160 furthermore if you just don't want to 341 00:11:51,720 --> 00:11:54,899 mess with the Powershell you just want 342 00:11:53,160 --> 00:11:56,579 this thing to open in command prompt 343 00:11:54,899 --> 00:11:58,440 every time let me show you how to do 344 00:11:56,579 --> 00:12:00,540 that you go down hit settings right here 345 00:11:58,440 --> 00:12:02,339 or if you're already in settings it'll 346 00:12:00,540 --> 00:12:03,779 already be there and then from there you 347 00:12:02,339 --> 00:12:05,640 want to come up to the top where it says 348 00:12:03,779 --> 00:12:07,620 startup click on Startup and then where 349 00:12:05,640 --> 00:12:09,480 it says default profile you can select 350 00:12:07,620 --> 00:12:11,279 the default profile that terminal opens 351 00:12:09,480 --> 00:12:13,260 up with you can either have it be a 352 00:12:11,279 --> 00:12:15,180 regular command prompt or you can even 353 00:12:13,260 --> 00:12:16,560 have it be an admin command prompt if 354 00:12:15,180 --> 00:12:18,420 you want and then once you're done you 355 00:12:16,560 --> 00:12:21,120 go ahead and hit save and that'll save 356 00:12:18,420 --> 00:12:22,680 it as your default profile so in that 357 00:12:21,120 --> 00:12:24,660 case when we go ahead and close terminal 358 00:12:22,680 --> 00:12:26,700 here and we go ahead and open it again 359 00:12:24,660 --> 00:12:29,100 It'll ask for our user account control 360 00:12:26,700 --> 00:12:32,040 and then hit yes and it'll give you an 361 00:12:29,100 --> 00:12:34,380 admin command prompt just like that okay 362 00:12:32,040 --> 00:12:36,000 so now that we've gone over the basics 363 00:12:34,380 --> 00:12:37,980 and you know how to run the command 364 00:12:36,000 --> 00:12:39,720 prompt as either a regular user or an 365 00:12:37,980 --> 00:12:40,980 administrator let's get into some 366 00:12:39,720 --> 00:12:43,079 commands that you're actually going to 367 00:12:40,980 --> 00:12:45,060 need when fixing a computer many of 368 00:12:43,079 --> 00:12:47,579 these commands I use on almost a daily 369 00:12:45,060 --> 00:12:49,079 basis let me show you 370 00:12:47,579 --> 00:12:51,600 so the First Command that we're going to 371 00:12:49,079 --> 00:12:53,100 look at here is power CFG so if you just 372 00:12:51,600 --> 00:12:55,560 type power 373 00:12:53,100 --> 00:12:57,300 CFG and essentially all this stands for 374 00:12:55,560 --> 00:12:59,820 is power config and if you go ahead and 375 00:12:57,300 --> 00:13:01,740 hit space switch question mark it'll 376 00:12:59,820 --> 00:13:04,320 give you all the different options that 377 00:13:01,740 --> 00:13:05,940 you can use with power CFG however I'm 378 00:13:04,320 --> 00:13:08,339 going to show you a few of the ones that 379 00:13:05,940 --> 00:13:09,540 I like to use myself and another tip is 380 00:13:08,339 --> 00:13:11,339 if you're running the same command 381 00:13:09,540 --> 00:13:13,440 multiple times if you just hit the up 382 00:13:11,339 --> 00:13:14,760 Arrow it'll give you the last command 383 00:13:13,440 --> 00:13:17,459 that you actually ran so we're going to 384 00:13:14,760 --> 00:13:19,260 go ahead and we're going to try switch a 385 00:13:17,459 --> 00:13:20,880 and what this will show you is it'll 386 00:13:19,260 --> 00:13:22,620 show you the current power states that 387 00:13:20,880 --> 00:13:25,860 are currently enabled and supported on 388 00:13:22,620 --> 00:13:30,360 the system also if you go ahead and type 389 00:13:25,860 --> 00:13:32,519 in power CFG and then switch last wake 390 00:13:30,360 --> 00:13:34,139 it'll show you how many times the 391 00:13:32,519 --> 00:13:36,899 computer's been woken up since the last 392 00:13:34,139 --> 00:13:39,000 Boot and what the last device was that 393 00:13:36,899 --> 00:13:41,519 woke the system up and as you can see it 394 00:13:39,000 --> 00:13:44,100 was the USB controller obviously it was 395 00:13:41,519 --> 00:13:45,899 my keyboard now another command that you 396 00:13:44,100 --> 00:13:47,760 can use with power CFG we're going to go 397 00:13:45,899 --> 00:13:49,920 ahead and hit the up Arrow again and 398 00:13:47,760 --> 00:13:53,040 we're going to type in energy and that's 399 00:13:49,920 --> 00:13:54,600 just going to be e-n-e-r-g-y 400 00:13:53,040 --> 00:13:56,820 and then from there it's going to go 401 00:13:54,600 --> 00:13:58,560 ahead and it's going to give you an 402 00:13:56,820 --> 00:14:00,000 energy report for the system now this is 403 00:13:58,560 --> 00:14:02,040 going to take a minute to do so I'm 404 00:14:00,000 --> 00:14:04,019 going to go ahead and Skip ahead until 405 00:14:02,040 --> 00:14:06,660 this is done and I'll show you how you 406 00:14:04,019 --> 00:14:08,519 can check out the report 407 00:14:06,660 --> 00:14:10,019 all right here we go so as you can see 408 00:14:08,519 --> 00:14:12,899 our Energy report is going to be in 409 00:14:10,019 --> 00:14:15,180 users under Rich so if we go here we're 410 00:14:12,899 --> 00:14:18,180 going to go ahead and go to this PC go 411 00:14:15,180 --> 00:14:19,980 to C go to users and then go into my 412 00:14:18,180 --> 00:14:21,540 profile and then as you can see right 413 00:14:19,980 --> 00:14:23,579 here is an energy report we'll go ahead 414 00:14:21,540 --> 00:14:25,800 and double click on it and it'll give 415 00:14:23,579 --> 00:14:27,899 you a report of all the different energy 416 00:14:25,800 --> 00:14:29,399 specifics on your system I'm not going 417 00:14:27,899 --> 00:14:31,440 to bore you with all those specifics but 418 00:14:29,399 --> 00:14:34,200 gives you quite a bit of data for energy 419 00:14:31,440 --> 00:14:36,060 related topics so the next one that I'm 420 00:14:34,200 --> 00:14:38,100 going to show you is one that's equally 421 00:14:36,060 --> 00:14:39,420 as helpful if not more than that one 422 00:14:38,100 --> 00:14:41,639 right there and what I'm going to do is 423 00:14:39,420 --> 00:14:43,740 go ahead and hit up so we can get our 424 00:14:41,639 --> 00:14:47,600 Command back and then for this one I'm 425 00:14:43,740 --> 00:14:47,600 going to type battery report so you go 426 00:14:50,180 --> 00:14:54,000 b-a-t-t-e-r-y-r-e-p-o-r-t and go ahead 427 00:14:52,440 --> 00:14:55,620 and hit enter and it's going to go ahead 428 00:14:54,000 --> 00:14:58,079 and give you a battery life report and 429 00:14:55,620 --> 00:14:59,940 as you can see it saved it really fast 430 00:14:58,079 --> 00:15:02,279 that's probably because my system 431 00:14:59,940 --> 00:15:03,839 doesn't actually have a battery but if 432 00:15:02,279 --> 00:15:06,600 you have a notebook this will give you 433 00:15:03,839 --> 00:15:08,279 not only the different Power Cycles 434 00:15:06,600 --> 00:15:10,139 battery uses but it'll give you the 435 00:15:08,279 --> 00:15:12,240 health of the battery as well in this 436 00:15:10,139 --> 00:15:13,920 case it just gives me an empty report 437 00:15:12,240 --> 00:15:15,540 because I don't actually have a battery 438 00:15:13,920 --> 00:15:16,980 some of the other ways you can use this 439 00:15:15,540 --> 00:15:19,920 command and one way that I use this 440 00:15:16,980 --> 00:15:21,540 command all the time is by enabling and 441 00:15:19,920 --> 00:15:23,519 disabling different Power States on your 442 00:15:21,540 --> 00:15:26,040 computer let me show you that one so if 443 00:15:23,519 --> 00:15:28,980 you type power CFG and simply type the 444 00:15:26,040 --> 00:15:31,260 letter H this is for hibernate hit space 445 00:15:28,980 --> 00:15:33,420 and type off and what this will do is 446 00:15:31,260 --> 00:15:34,920 it'll turn hibernation off now this 447 00:15:33,420 --> 00:15:36,779 comes in really handy because if you 448 00:15:34,920 --> 00:15:38,399 want to disable your hybrid shutdown for 449 00:15:36,779 --> 00:15:40,440 whatever reason like for instance if you 450 00:15:38,399 --> 00:15:42,420 want to be able to recover data from the 451 00:15:40,440 --> 00:15:44,760 drive or be able to copy data to or from 452 00:15:42,420 --> 00:15:46,620 the drive from an external operating 453 00:15:44,760 --> 00:15:48,300 system like if you boot off like a Linux 454 00:15:46,620 --> 00:15:50,160 CD or something like that you have to 455 00:15:48,300 --> 00:15:51,720 turn off hybrid shutdown in order to get 456 00:15:50,160 --> 00:15:53,519 it to work and this is the way I 457 00:15:51,720 --> 00:15:56,699 typically do it is just by typing power 458 00:15:53,519 --> 00:15:58,380 CFG H off and that'll turn hibernation 459 00:15:56,699 --> 00:15:59,940 off now if you want to turn it back on 460 00:15:58,380 --> 00:16:01,500 it's the same thing you just type in 461 00:15:59,940 --> 00:16:04,920 power CFG 462 00:16:01,500 --> 00:16:06,540 h on and it'll turn hibernation back on 463 00:16:04,920 --> 00:16:08,579 now for the next command we're going to 464 00:16:06,540 --> 00:16:10,620 go ahead and hit CLS to clear our screen 465 00:16:08,579 --> 00:16:12,360 now the next command is shutdown now 466 00:16:10,620 --> 00:16:14,459 this one not actually going to run it 467 00:16:12,360 --> 00:16:15,959 because it'll mess up my screen 468 00:16:14,459 --> 00:16:17,820 recording however there's a few 469 00:16:15,959 --> 00:16:20,940 different switches that you can use for 470 00:16:17,820 --> 00:16:24,120 this command so if you type in shutdown 471 00:16:20,940 --> 00:16:25,860 and then afterwards type switch S what 472 00:16:24,120 --> 00:16:28,620 this will do is actually just shut the 473 00:16:25,860 --> 00:16:30,540 system down now if you type in switch R 474 00:16:28,620 --> 00:16:33,060 it will go through and do a reboot on 475 00:16:30,540 --> 00:16:34,980 the system however there's one more that 476 00:16:33,060 --> 00:16:37,680 comes in really handy if you type in 477 00:16:34,980 --> 00:16:40,980 shut down switch r space and then switch 478 00:16:37,680 --> 00:16:42,959 oh what this does is it puts you into an 479 00:16:40,980 --> 00:16:44,940 advanced startup this is how you can get 480 00:16:42,959 --> 00:16:47,519 into safe mode and things of that nature 481 00:16:44,940 --> 00:16:49,079 okay so moving on for our next command 482 00:16:47,519 --> 00:16:51,660 we're going to look at the system file 483 00:16:49,079 --> 00:16:53,220 Checker now this one I went into way 484 00:16:51,660 --> 00:16:55,500 more detail with this one in a previous 485 00:16:53,220 --> 00:16:56,820 video but I'm going to go ahead and give 486 00:16:55,500 --> 00:16:58,259 you just some of the really basic 487 00:16:56,820 --> 00:17:01,199 commands that you can use with this one 488 00:16:58,259 --> 00:17:04,100 so first off we're going to go sfc 489 00:17:01,199 --> 00:17:07,199 forward slash 490 00:17:04,100 --> 00:17:09,839 verify only and what this will do is 491 00:17:07,199 --> 00:17:11,819 it'll go through and it'll verify your 492 00:17:09,839 --> 00:17:12,839 system files and it'll take a minute to 493 00:17:11,819 --> 00:17:14,579 complete so I'm going to go ahead and 494 00:17:12,839 --> 00:17:16,140 let this one complete real quick and 495 00:17:14,579 --> 00:17:18,600 then I'll get back to you 496 00:17:16,140 --> 00:17:20,640 so once verification is complete you can 497 00:17:18,600 --> 00:17:23,220 see that it actually did find some stuff 498 00:17:20,640 --> 00:17:26,699 wrong so the way that we fix that is by 499 00:17:23,220 --> 00:17:29,460 simply typing sfc space and then forward 500 00:17:26,699 --> 00:17:31,440 slash scan now and then what that will 501 00:17:29,460 --> 00:17:33,360 do is it'll go through and actually do a 502 00:17:31,440 --> 00:17:35,039 system scan unfortunately do the 503 00:17:33,360 --> 00:17:37,080 verification phase again but once it 504 00:17:35,039 --> 00:17:39,360 finishes the verification phase it will 505 00:17:37,080 --> 00:17:40,919 actually fix the problem so I'm going to 506 00:17:39,360 --> 00:17:44,520 go ahead and let this one finish again 507 00:17:40,919 --> 00:17:46,860 and this time we'll have it fix whatever 508 00:17:44,520 --> 00:17:48,900 Integrity violations it found and then 509 00:17:46,860 --> 00:17:51,240 we'll move on to the next command 510 00:17:48,900 --> 00:17:53,160 okay there we go now it finished up it 511 00:17:51,240 --> 00:17:55,260 said it found corrupt files and 512 00:17:53,160 --> 00:17:57,720 successfully repaired them so we can 513 00:17:55,260 --> 00:17:59,880 move on to the next one however if for 514 00:17:57,720 --> 00:18:02,280 whatever reason it found corrupted files 515 00:17:59,880 --> 00:18:05,940 but was unable to fix them that's where 516 00:18:02,280 --> 00:18:08,220 dism comes in now di SM simply stands 517 00:18:05,940 --> 00:18:10,020 for the deployment Imaging servicing and 518 00:18:08,220 --> 00:18:11,460 management tool and this one right here 519 00:18:10,020 --> 00:18:14,220 I'm not going to get into this tool 520 00:18:11,460 --> 00:18:15,960 right now because I did an entire video 521 00:18:14,220 --> 00:18:17,880 on how to do this so I'm going to go 522 00:18:15,960 --> 00:18:20,160 ahead and just direct you to that videos 523 00:18:17,880 --> 00:18:23,400 because I give a much more detailed 524 00:18:20,160 --> 00:18:25,799 explanation of sfc and dism in that 525 00:18:23,400 --> 00:18:27,780 video however if you ever do run into 526 00:18:25,799 --> 00:18:30,000 that problem that's how you fix it is 527 00:18:27,780 --> 00:18:32,100 with dism now the next command we're 528 00:18:30,000 --> 00:18:33,480 going to look at is check disk and this 529 00:18:32,100 --> 00:18:34,980 is a way where you can check your hard 530 00:18:33,480 --> 00:18:36,799 drive for different errors and to run it 531 00:18:34,980 --> 00:18:39,480 all you do is type in 532 00:18:36,799 --> 00:18:41,160 chkdsk for check disk and then there's a 533 00:18:39,480 --> 00:18:42,419 couple different switches you can use if 534 00:18:41,160 --> 00:18:44,640 you want you can always hit switch 535 00:18:42,419 --> 00:18:46,380 question mark and be able to get all the 536 00:18:44,640 --> 00:18:48,120 different switches all at once however 537 00:18:46,380 --> 00:18:49,919 the ones that you're going to need most 538 00:18:48,120 --> 00:18:53,100 of the time are going to be be switch F 539 00:18:49,919 --> 00:18:55,500 which checks the file system itself or 540 00:18:53,100 --> 00:18:58,380 switch R which actually checks for bad 541 00:18:55,500 --> 00:19:01,020 sectors now switch R is automatically 542 00:18:58,380 --> 00:19:03,480 going to imply switch F was used in the 543 00:19:01,020 --> 00:19:04,919 first place so I typically use switch R 544 00:19:03,480 --> 00:19:06,480 because you know it gives a more 545 00:19:04,919 --> 00:19:09,000 thorough scan of the drive however 546 00:19:06,480 --> 00:19:11,400 switch F will be faster but it won't 547 00:19:09,000 --> 00:19:13,260 check for bad sectors now the next 548 00:19:11,400 --> 00:19:16,080 command that we're going to look at is 549 00:19:13,260 --> 00:19:18,179 system info and essentially it does 550 00:19:16,080 --> 00:19:21,480 exactly what you think it does we're 551 00:19:18,179 --> 00:19:24,900 going to type in system info 552 00:19:21,480 --> 00:19:26,160 and it'll go through and it'll run all 553 00:19:24,900 --> 00:19:27,480 the different information for your 554 00:19:26,160 --> 00:19:29,220 system itself so if we're going to go 555 00:19:27,480 --> 00:19:31,080 ahead and scroll through here you'll be 556 00:19:29,220 --> 00:19:33,240 able to see all the different things 557 00:19:31,080 --> 00:19:35,580 about this system not only the operating 558 00:19:33,240 --> 00:19:37,260 system information but also different 559 00:19:35,580 --> 00:19:39,660 Hardware information like for instance 560 00:19:37,260 --> 00:19:42,120 the kind of processor the system has the 561 00:19:39,660 --> 00:19:43,980 amount of memory the system has and even 562 00:19:42,120 --> 00:19:46,620 the time zone that the system is set up 563 00:19:43,980 --> 00:19:48,360 to use so this is a really useful tool 564 00:19:46,620 --> 00:19:50,520 if you just want basic system 565 00:19:48,360 --> 00:19:53,220 information for the computer that you're 566 00:19:50,520 --> 00:19:54,900 currently using so as you can see there 567 00:19:53,220 --> 00:19:57,720 are several commands that are extremely 568 00:19:54,900 --> 00:20:00,120 important for repairing systems however 569 00:19:57,720 --> 00:20:01,980 the command prompt also comes in really 570 00:20:00,120 --> 00:20:04,620 handy when you're troubleshooting 571 00:20:01,980 --> 00:20:06,720 network problems so let's jump back on 572 00:20:04,620 --> 00:20:09,600 the computer and I'll show you some of 573 00:20:06,720 --> 00:20:11,580 the most commonly used commands for 574 00:20:09,600 --> 00:20:13,860 Network troubleshooting 575 00:20:11,580 --> 00:20:16,440 okay so just like before we're going to 576 00:20:13,860 --> 00:20:17,880 type CLS to clear our screen here and 577 00:20:16,440 --> 00:20:19,679 I'm going to show you some really basic 578 00:20:17,880 --> 00:20:22,380 commands for Network troubleshooting now 579 00:20:19,679 --> 00:20:25,980 the first one that everyone should know 580 00:20:22,380 --> 00:20:27,419 is ipconfig so if you type in IP 581 00:20:25,980 --> 00:20:29,580 config 582 00:20:27,419 --> 00:20:31,679 first off I would highly recommend that 583 00:20:29,580 --> 00:20:33,179 you spell it right and to do that you 584 00:20:31,679 --> 00:20:35,580 type in IP 585 00:20:33,179 --> 00:20:37,860 config and it'll go ahead and give you 586 00:20:35,580 --> 00:20:40,980 your IP information so as you can see 587 00:20:37,860 --> 00:20:42,539 here it shows my my DNS right here and 588 00:20:40,980 --> 00:20:45,419 I'm going to have this blanked out right 589 00:20:42,539 --> 00:20:48,299 here but on yours you'll have your own 590 00:20:45,419 --> 00:20:50,940 specific one it'll also show you your 591 00:20:48,299 --> 00:20:53,100 local addresses your local IP addresses 592 00:20:50,940 --> 00:20:55,140 for your system now if you want to have 593 00:20:53,100 --> 00:20:59,640 more information than that you can also 594 00:20:55,140 --> 00:21:01,980 go ipconfig switch all and it'll give 595 00:20:59,640 --> 00:21:04,620 you a ton of information including your 596 00:21:01,980 --> 00:21:06,600 physical physical Mac address as well as 597 00:21:04,620 --> 00:21:08,220 a bunch of different IPS even comes down 598 00:21:06,600 --> 00:21:10,380 and gives you your DNS servers that 599 00:21:08,220 --> 00:21:12,960 you're currently using as well as when 600 00:21:10,380 --> 00:21:15,480 your lease was obtained and when it 601 00:21:12,960 --> 00:21:17,940 expires for your IP address itself now 602 00:21:15,480 --> 00:21:20,880 speaking of your lease if for whatever 603 00:21:17,940 --> 00:21:22,919 reason you need to renew your lease for 604 00:21:20,880 --> 00:21:25,980 your IP address then what you would do 605 00:21:22,919 --> 00:21:27,419 is you would type ikey ipconfig and then 606 00:21:25,980 --> 00:21:29,760 you would use the switch and you would 607 00:21:27,419 --> 00:21:32,039 do release and what this will do is 608 00:21:29,760 --> 00:21:34,260 essentially boot you off the internet 609 00:21:32,039 --> 00:21:38,940 now to get back what you're going to 610 00:21:34,260 --> 00:21:40,919 want to do is go ahead and type in renew 611 00:21:38,940 --> 00:21:42,840 and it'll go ahead and connect back to 612 00:21:40,919 --> 00:21:45,539 the internet and get a new IP address 613 00:21:42,840 --> 00:21:47,580 for you and there we go now some of the 614 00:21:45,539 --> 00:21:49,860 other switches for ipconfig that can 615 00:21:47,580 --> 00:21:52,020 come in handy is for instance you can 616 00:21:49,860 --> 00:21:54,840 view your DNS cache and if you want to 617 00:21:52,020 --> 00:21:57,179 do that you go ahead and hit ipconfig 618 00:21:54,840 --> 00:22:00,000 switch 619 00:21:57,179 --> 00:22:02,280 display DNS and this will go ahead and 620 00:22:00,000 --> 00:22:04,440 it'll show you your DNS cache these are 621 00:22:02,280 --> 00:22:07,320 all the different DNS requests that 622 00:22:04,440 --> 00:22:09,419 Windows has made in order to associate 623 00:22:07,320 --> 00:22:12,179 different domain names to different IP 624 00:22:09,419 --> 00:22:14,159 addresses now if you want you can flush 625 00:22:12,179 --> 00:22:16,860 the DNS cache if you're having problems 626 00:22:14,159 --> 00:22:18,539 with your DNS which happens a lot more 627 00:22:16,860 --> 00:22:19,860 often than you might think so we're 628 00:22:18,539 --> 00:22:21,360 going to go ahead and hit up Arrow again 629 00:22:19,860 --> 00:22:22,679 to get our Command back and we're going 630 00:22:21,360 --> 00:22:25,799 to type in 631 00:22:22,679 --> 00:22:28,080 flush DNS and what that will do is it 632 00:22:25,799 --> 00:22:29,520 will essentially flush the DNS cache 633 00:22:28,080 --> 00:22:31,620 that we just looked at before so if we 634 00:22:29,520 --> 00:22:34,380 run that again you can see there is no 635 00:22:31,620 --> 00:22:36,059 DNS cache because we flushed it now 636 00:22:34,380 --> 00:22:39,960 moving on we're going to look at the 637 00:22:36,059 --> 00:22:42,840 command netstat so if we type in netstat 638 00:22:39,960 --> 00:22:45,179 now I'm going to use the switch 639 00:22:42,840 --> 00:22:47,400 which in this case it uses a dash for 640 00:22:45,179 --> 00:22:49,200 switch instead of a forward slash we're 641 00:22:47,400 --> 00:22:51,299 going to type a n and what that's going 642 00:22:49,200 --> 00:22:52,919 to show us is it's going to show us all 643 00:22:51,299 --> 00:22:54,720 of the different ports that are open on 644 00:22:52,919 --> 00:22:56,280 our system right now so if we come up 645 00:22:54,720 --> 00:22:58,500 here if we scroll through this you can 646 00:22:56,280 --> 00:23:01,260 see that all of these different ports 647 00:22:58,500 --> 00:23:04,260 right here are currently listening and 648 00:23:01,260 --> 00:23:06,780 some actually have things established on 649 00:23:04,260 --> 00:23:08,220 that Porsche that Port specifically so 650 00:23:06,780 --> 00:23:11,220 you can get all of your Port information 651 00:23:08,220 --> 00:23:13,679 and the different IP addresses that are 652 00:23:11,220 --> 00:23:15,900 connected to that Port right here so as 653 00:23:13,679 --> 00:23:17,460 you can see we do have some remote IP 654 00:23:15,900 --> 00:23:20,760 addresses that are currently connected 655 00:23:17,460 --> 00:23:22,740 on different ports now speaking of 656 00:23:20,760 --> 00:23:24,299 different IP addresses what we're going 657 00:23:22,740 --> 00:23:25,860 to do is we're going to go ahead and 658 00:23:24,299 --> 00:23:27,659 we're going to look at the Ping command 659 00:23:25,860 --> 00:23:30,419 now what the Ping command does is it 660 00:23:27,659 --> 00:23:33,120 essentially sends some random packets 661 00:23:30,419 --> 00:23:35,039 just to be able to test if we're getting 662 00:23:33,120 --> 00:23:36,900 network connectivity between two IP 663 00:23:35,039 --> 00:23:38,240 addresses so what I'm going to do is I'm 664 00:23:36,900 --> 00:23:40,620 going to type ping 665 00:23:38,240 --> 00:23:42,720 8.8.8.8 and what this is this is Google 666 00:23:40,620 --> 00:23:45,000 right here so if we hit enter it's going 667 00:23:42,720 --> 00:23:48,120 to to go ahead and ping Google four 668 00:23:45,000 --> 00:23:50,460 times so by default it always sends four 669 00:23:48,120 --> 00:23:53,460 ping requests however if for whatever 670 00:23:50,460 --> 00:23:55,140 reason you decide you want to make more 671 00:23:53,460 --> 00:23:57,659 than that then what you can do is you 672 00:23:55,140 --> 00:23:59,220 can type in ping dash n and then give it 673 00:23:57,659 --> 00:24:01,520 a specific number so I'm going to type 674 00:23:59,220 --> 00:24:03,419 in five and then I'm going to type in 675 00:24:01,520 --> 00:24:05,340 8.8.8.8 again and we're going to hit 676 00:24:03,419 --> 00:24:06,539 enter and in this case what it's going 677 00:24:05,340 --> 00:24:09,179 to do is it's actually going to make 678 00:24:06,539 --> 00:24:11,760 five ping requests to Google instead of 679 00:24:09,179 --> 00:24:12,960 the four now let's say that you don't 680 00:24:11,760 --> 00:24:15,960 want to have to deal with that you just 681 00:24:12,960 --> 00:24:17,580 want it to Ping continuously forever now 682 00:24:15,960 --> 00:24:19,020 the way you would do that is you would 683 00:24:17,580 --> 00:24:21,120 go ping 684 00:24:19,020 --> 00:24:22,799 Dash t 685 00:24:21,120 --> 00:24:24,720 and then you would type the IP address 686 00:24:22,799 --> 00:24:27,059 you wanted to Ping and then hit enter 687 00:24:24,720 --> 00:24:29,400 and at this point it will ping forever 688 00:24:27,059 --> 00:24:30,960 or at least until it's interrupted now 689 00:24:29,400 --> 00:24:33,179 if you want to interrupt this command 690 00:24:30,960 --> 00:24:35,880 all you have to do is go ahead and hit 691 00:24:33,179 --> 00:24:37,500 Ctrl C and it'll interrupt it and at 692 00:24:35,880 --> 00:24:39,120 that point it'll give you the the 693 00:24:37,500 --> 00:24:42,299 rundown of what it found any packets 694 00:24:39,120 --> 00:24:44,159 that it lost or whatever the minimum 695 00:24:42,299 --> 00:24:46,140 maximum and average milliseconds were 696 00:24:44,159 --> 00:24:49,020 now the next one that we're going to 697 00:24:46,140 --> 00:24:50,400 move on to is path ping now what this is 698 00:24:49,020 --> 00:24:53,039 going to do is this is going to give you 699 00:24:50,400 --> 00:24:54,900 all of the different routers that are 700 00:24:53,039 --> 00:24:56,880 connected between you and the IP address 701 00:24:54,900 --> 00:24:59,039 that you want to find so for that we're 702 00:24:56,880 --> 00:25:00,600 going to type in pathping 703 00:24:59,039 --> 00:25:02,340 and we're going to use the same IP 704 00:25:00,600 --> 00:25:03,960 address Google we're going to hit enter 705 00:25:02,340 --> 00:25:05,760 and then what it's going to do is it's 706 00:25:03,960 --> 00:25:08,460 going to go through all of the different 707 00:25:05,760 --> 00:25:11,280 IP addresses that it has to go to in 708 00:25:08,460 --> 00:25:13,380 order to get to that IP address and as 709 00:25:11,280 --> 00:25:14,880 you can see there's quite a few right 710 00:25:13,380 --> 00:25:16,799 here that it has to jump through but 711 00:25:14,880 --> 00:25:19,919 it'll give you all the different jumps 712 00:25:16,799 --> 00:25:22,380 that need to happen before it can reach 713 00:25:19,919 --> 00:25:24,299 the IP address that you're asking it to 714 00:25:22,380 --> 00:25:26,100 look for okay so the next command we're 715 00:25:24,299 --> 00:25:28,559 going to look at now is going to be a 716 00:25:26,100 --> 00:25:30,900 command called tracert and this 717 00:25:28,559 --> 00:25:35,159 essentially just means trace route but 718 00:25:30,900 --> 00:25:36,120 it's spelled Trace RT or tracert and 719 00:25:35,159 --> 00:25:39,299 we're going to go ahead and hit enter 720 00:25:36,120 --> 00:25:40,860 we're going to type 8.8.8.8 again and 721 00:25:39,299 --> 00:25:43,320 hit enter again and what this does is 722 00:25:40,860 --> 00:25:45,059 essentially the same thing as ping path 723 00:25:43,320 --> 00:25:46,559 but this one gives us a little bit more 724 00:25:45,059 --> 00:25:49,020 information like for instance it gives 725 00:25:46,559 --> 00:25:50,880 us it gives us the milliseconds in which 726 00:25:49,020 --> 00:25:54,020 it takes to respond to the different 727 00:25:50,880 --> 00:25:54,020 servers that it goes through 728 00:25:54,659 --> 00:25:58,980 But ultimately it's going to give us the 729 00:25:56,700 --> 00:26:01,860 same information that we got from ping 730 00:25:58,980 --> 00:26:05,159 path before now one option that you can 731 00:26:01,860 --> 00:26:07,919 make also is if you type Dash D for 732 00:26:05,159 --> 00:26:09,600 Tracer it won't actually resolve the DNS 733 00:26:07,919 --> 00:26:11,580 numbers and as you can see I did it 734 00:26:09,600 --> 00:26:14,039 wrong here you have to put it before the 735 00:26:11,580 --> 00:26:16,320 IP address not after it so if we put 736 00:26:14,039 --> 00:26:18,539 Dash D here it'll go ahead and do the 737 00:26:16,320 --> 00:26:21,000 same thing again but it won't resolve 738 00:26:18,539 --> 00:26:23,100 the the domain names themselves so it'll 739 00:26:21,000 --> 00:26:24,600 make the app kind of go a little bit 740 00:26:23,100 --> 00:26:25,679 quicker so it'll get to the end a little 741 00:26:24,600 --> 00:26:27,900 bit faster 742 00:26:25,679 --> 00:26:30,419 so as you can see there are tons of 743 00:26:27,900 --> 00:26:32,340 things that you can do from within the 744 00:26:30,419 --> 00:26:34,620 command prompt in fact there are many 745 00:26:32,340 --> 00:26:36,720 tasks that you can only do from the 746 00:26:34,620 --> 00:26:38,700 command prompt so don't be afraid to 747 00:26:36,720 --> 00:26:41,700 familiarize yourself with DOS commands 748 00:26:38,700 --> 00:26:43,679 they can be extremely helpful and also 749 00:26:41,700 --> 00:26:45,480 if there are any commands that you think 750 00:26:43,679 --> 00:26:46,919 I should have mentioned then make sure 751 00:26:45,480 --> 00:26:49,320 that you mention them down in the 752 00:26:46,919 --> 00:26:52,440 comments below I may make a sequel to 753 00:26:49,320 --> 00:26:54,480 this video now earlier in the video I 754 00:26:52,440 --> 00:26:57,539 said that I did a much better video on 755 00:26:54,480 --> 00:26:59,940 sfc and dism if you'd like to check that 756 00:26:57,539 --> 00:27:02,220 video out then go ahead and click here 757 00:26:59,940 --> 00:27:03,960 there's also a second part to that video 758 00:27:02,220 --> 00:27:06,960 that shows how to do the same thing from 759 00:27:03,960 --> 00:27:10,020 recovery believe it or not it's two 760 00:27:06,960 --> 00:27:12,860 different processes as always you guys 761 00:27:10,020 --> 00:27:12,860 have a great day 58203

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