1 00:00:06,600 --> 00:00:07,800 - All right, as I told you, 2 00:00:07,800 --> 00:00:10,380 Linux is all about using commands. 3 00:00:10,380 --> 00:00:13,470 So before we are starting to learn how to work 4 00:00:13,470 --> 00:00:16,410 with many, many commands that are available on Linux, 5 00:00:16,410 --> 00:00:18,810 first a few generic words. 6 00:00:18,810 --> 00:00:22,436 The first thing to realize is that Linux is case sensitive. 7 00:00:22,436 --> 00:00:25,200 That means that really it makes sense 8 00:00:25,200 --> 00:00:27,330 if you use upper or lowercase, 9 00:00:27,330 --> 00:00:29,460 and I can tell you all commands 10 00:00:29,460 --> 00:00:31,770 that you are going to work with are lowercase. 11 00:00:31,770 --> 00:00:33,840 So make sure that you are typing lowercase 12 00:00:33,840 --> 00:00:36,960 because otherwise you will get an error message. 13 00:00:36,960 --> 00:00:41,070 Also in Linux commands, go together with options. 14 00:00:41,070 --> 00:00:43,380 An option is something that you put behind the name 15 00:00:43,380 --> 00:00:46,500 of the command to change the behavior of the command. 16 00:00:46,500 --> 00:00:51,300 And options exist as long options or as short options. 17 00:00:51,300 --> 00:00:52,950 Long options will always start 18 00:00:52,950 --> 00:00:56,170 with dash dash and short options normally start 19 00:00:56,170 --> 00:00:58,440 with a single dash. 20 00:00:58,440 --> 00:01:01,320 If you use, for instance, uname--help 21 00:01:01,320 --> 00:01:03,960 then --help is the long option. 22 00:01:03,960 --> 00:01:07,050 And if you use ls -lrt, 23 00:01:07,050 --> 00:01:10,440 the -lrt is referring to three short options; 24 00:01:10,440 --> 00:01:12,390 the L, the R, and the T. 25 00:01:12,390 --> 00:01:14,749 And if you wanna know which options are available 26 00:01:14,749 --> 00:01:16,890 you can use --help 27 00:01:16,890 --> 00:01:19,980 on any command to learn how to use it. 28 00:01:19,980 --> 00:01:22,140 Let's do a quick demo before we are moving over 29 00:01:22,140 --> 00:01:23,253 to the next video. 30 00:01:25,830 --> 00:01:29,100 All right, let me demonstrate the use of these options. 31 00:01:29,100 --> 00:01:31,440 So ls --help. 32 00:01:31,440 --> 00:01:33,240 I really like the --help 33 00:01:33,240 --> 00:01:35,910 because that's printing the options that are available 34 00:01:35,910 --> 00:01:37,683 and oh boy, that's a lot. 35 00:01:38,610 --> 00:01:41,100 We will take care of that for later. 36 00:01:41,100 --> 00:01:43,380 But what I want to show you is 37 00:01:43,380 --> 00:01:46,350 that ls -- help is showing help. 38 00:01:46,350 --> 00:01:48,600 You know what, let's do that on mkdir, 39 00:01:48,600 --> 00:01:50,580 mkdir is for make directory. 40 00:01:50,580 --> 00:01:52,830 At least it fits on one screen. 41 00:01:52,830 --> 00:01:54,990 I'll tell you about the help text later. 42 00:01:54,990 --> 00:01:58,110 What I want you to realize right now is 43 00:01:58,110 --> 00:02:02,220 if we are using mkdir-help with a single minus instead 44 00:02:02,220 --> 00:02:07,080 of a double minus, then I'm getting invalid option H. 45 00:02:07,080 --> 00:02:12,000 So the single minus is interpreting H and E and L and P 46 00:02:12,000 --> 00:02:13,560 and that is invalid. 47 00:02:13,560 --> 00:02:15,690 So we need a double minus. 48 00:02:15,690 --> 00:02:19,110 Let me also show you the uppercase thing. 49 00:02:19,110 --> 00:02:22,530 If I would type LS in uppercase, then what do we get? 50 00:02:22,530 --> 00:02:25,140 We get LS command not found. 51 00:02:25,140 --> 00:02:26,820 In some cases your distribution 52 00:02:26,820 --> 00:02:29,677 will tell you, "a LS command not found. 53 00:02:29,677 --> 00:02:32,400 "Did you want to run LS in all lowercase?" 54 00:02:32,400 --> 00:02:35,333 In this case, you can see that is not happening. 55 00:02:35,333 --> 00:02:38,610 So the message here is in Linux, 56 00:02:38,610 --> 00:02:41,193 mind the use of uppercase and lowercase.