1 00:00:00,570 --> 00:00:01,620 Hello, everyone. 2 00:00:01,890 --> 00:00:06,840 In this lesson, I'm going to talk about the absolute path and the relative path. 3 00:00:08,060 --> 00:00:15,110 Also, I'm going to talk about the command options and arguments in Linux. 4 00:00:15,440 --> 00:00:18,050 We have two different types of batting. 5 00:00:18,260 --> 00:00:21,560 We have the absolute path and we have the relative path. 6 00:00:22,330 --> 00:00:23,350 And absolute path. 7 00:00:23,350 --> 00:00:25,840 We have to write the complete path. 8 00:00:26,170 --> 00:00:31,010 And also we have to start the path from the root directory. 9 00:00:31,030 --> 00:00:32,140 The forward slash. 10 00:00:32,170 --> 00:00:40,690 Then we continue writing the the name of the directory and we separate them by typing the slash. 11 00:00:40,820 --> 00:00:42,250 So you can see here in this example. 12 00:00:42,250 --> 00:00:43,470 So this is the command CD. 13 00:00:43,540 --> 00:00:51,000 We want to change the current directory in order to go to the, to the directory of test here. 14 00:00:51,010 --> 00:00:55,840 So we can see here this is the forward slash, this is the root directory and this is the directory 15 00:00:55,840 --> 00:01:01,240 home slash Tom So we separate between the directories by typing the slash. 16 00:01:01,950 --> 00:01:06,390 Then slash lfcs, then slash test. 17 00:01:07,080 --> 00:01:11,790 So this is the way how we write the absolute path. 18 00:01:12,600 --> 00:01:14,700 You can go to now to the relative path. 19 00:01:15,000 --> 00:01:20,040 The relative path path is basically defined as a short path. 20 00:01:20,900 --> 00:01:27,830 As we already inside the directory or the working directory, we don't start the path from the root 21 00:01:27,830 --> 00:01:28,520 directory. 22 00:01:28,550 --> 00:01:34,250 The forward slash, for example, we can see here we are already inside. 23 00:01:35,260 --> 00:01:42,010 The current working directory and we would like all listeners to go to the next directory so we don't 24 00:01:42,010 --> 00:01:45,500 have to write the complete path. 25 00:01:45,520 --> 00:01:47,170 So this is the relative path. 26 00:01:47,200 --> 00:01:47,890 It's short. 27 00:01:47,920 --> 00:01:54,220 We just, uh, we're going to just change the current path to the next path. 28 00:01:54,310 --> 00:02:02,740 But here we have for the absolute path, we write the complete path from the beginning till the end. 29 00:02:06,380 --> 00:02:12,380 Majority of the commands usually have options and we run these options after the commands. 30 00:02:12,590 --> 00:02:18,590 We can write or run these options either as a short notation or a long notation. 31 00:02:18,590 --> 00:02:26,960 So as we can see here, this is the command we have to is to list the directory contents and then we 32 00:02:26,960 --> 00:02:28,280 have the options. 33 00:02:28,550 --> 00:02:32,480 And this option, either we write them as a short notation or a long notation. 34 00:02:32,480 --> 00:02:35,450 For example, we have the dashes. 35 00:02:36,150 --> 00:02:39,330 So we were just this is the short notation. 36 00:02:39,330 --> 00:02:41,610 And we can also write the long notation. 37 00:02:41,640 --> 00:02:41,940 Dash. 38 00:02:41,940 --> 00:02:43,050 Dash size. 39 00:02:43,960 --> 00:02:48,130 And we can see here is the argument comes after. 40 00:02:48,370 --> 00:02:50,980 The argument comes after the options here. 41 00:02:51,800 --> 00:02:55,280 For instance, we have a slash fa and slash. 42 00:02:55,280 --> 00:02:59,060 This is the we would like to list the content of what? 43 00:03:00,760 --> 00:03:02,500 Of the root directory. 44 00:03:02,500 --> 00:03:09,040 And here we would like to list the content, for example, for the slash home slash tom slash lfc's. 45 00:03:09,460 --> 00:03:15,760 So for the options, we can write them either short notation, as we can see here, or a long notation, 46 00:03:15,760 --> 00:03:17,710 and the arguments comes after. 47 00:03:17,710 --> 00:03:24,370 So we just need to remember this commands options, then arguments. 48 00:03:24,940 --> 00:03:33,280 The main reason for writing options and arguments after the commands is to adjust the behavior of these 49 00:03:33,280 --> 00:03:34,090 commands. 50 00:03:34,120 --> 00:03:42,970 Therefore, when when we pass options and arguments to the command, for example, here we want to adjust 51 00:03:42,970 --> 00:03:49,690 the behavior and execution of these commands in order to receive different results. 52 00:03:51,300 --> 00:03:51,990 Thus. 53 00:03:51,990 --> 00:03:53,360 That's it for this session. 54 00:03:53,370 --> 00:03:55,440 Thank you and see you in the next lesson.