1 00:00:00,180 --> 00:00:00,930 Hello, everyone. 2 00:00:01,710 --> 00:00:07,170 In this demo, I'll show you how to create temporary files and directories on your system using the 3 00:00:07,170 --> 00:00:09,090 system, the temp files. 4 00:00:09,840 --> 00:00:15,840 So in many cases, you may want to create temporarily files on your system that you do not want to keep 5 00:00:15,840 --> 00:00:16,620 in the long run. 6 00:00:17,190 --> 00:00:23,100 These can include application look files or pictures of your ex or whatever you would like not to keep 7 00:00:23,100 --> 00:00:24,070 for a long time. 8 00:00:24,710 --> 00:00:26,610 Okay, so how can you do that? 9 00:00:27,690 --> 00:00:34,980 The first step is to make sure that the Temple Mount service is active and up and running. 10 00:00:36,050 --> 00:00:40,410 And you can see here attempt at Mount has to be active and running. 11 00:00:40,530 --> 00:00:40,950 All right. 12 00:00:42,180 --> 00:00:49,800 The second step is to go to the ETSI temp files, the directory, and to create a configuration file 13 00:00:49,800 --> 00:00:53,130 for your temporary files so you can call it whatever you want. 14 00:00:53,220 --> 00:00:54,990 I'm gonna call it temp dot com. 15 00:00:57,090 --> 00:01:03,480 And here you can include all the directories and the files that you temporarily want to create. 16 00:01:04,680 --> 00:01:11,370 So what I'm gonna do here, I'm gonna create a new directory in our blog called Darwan. 17 00:01:13,170 --> 00:01:14,820 I'm gonna give it full permissions. 18 00:01:15,390 --> 00:01:20,070 It will be owned by the user route and also the group route as well. 19 00:01:22,350 --> 00:01:24,690 I'm gonna create another directory. 20 00:01:25,080 --> 00:01:32,440 It will be called Directory to Diet to in the same place, Inverloch. 21 00:01:33,210 --> 00:01:34,950 I'll give it full permissions as well. 22 00:01:36,060 --> 00:01:42,060 And the user route will be the owner as well as the group route will also be the owner. 23 00:01:42,870 --> 00:01:47,340 And I will give it the age parameter of 30 seconds. 24 00:01:48,240 --> 00:01:52,450 So you might be wondering what the age parameter of 30 seconds here mean. 25 00:01:53,130 --> 00:02:01,950 This simply means that any file in the diary to the rectory can be cleaned up and removed after 30 seconds 26 00:02:01,950 --> 00:02:02,700 of creation. 27 00:02:02,940 --> 00:02:08,250 When I invoke the clean command, as you as you will see later in this video. 28 00:02:08,380 --> 00:02:08,940 All right. 29 00:02:09,210 --> 00:02:13,740 Now I'm done creating my temporary directors director is here. 30 00:02:14,250 --> 00:02:19,200 What I'm gonna do, I'm gonna create a temporarily file in dire one. 31 00:02:19,230 --> 00:02:26,850 So I'm gonna go here and create one and then I'll give it full permissions. 32 00:02:28,340 --> 00:02:35,360 Oh, makes didn't the owner and the user owner and the group owner as well. 33 00:02:37,690 --> 00:02:38,370 All right. 34 00:02:39,000 --> 00:02:50,310 Now, the last thing I will do is I want to remove the dire one directly when I invoke the remove command, 35 00:02:50,330 --> 00:02:51,480 as you you'll see later. 36 00:02:52,380 --> 00:03:00,690 And actually, I have to start with the F one fire because you cannot remove the directory unless it's 37 00:03:00,690 --> 00:03:01,140 empty. 38 00:03:01,230 --> 00:03:07,080 So I'm going to use that and then I'm going to remove the directory. 39 00:03:07,080 --> 00:03:08,880 One is tell that one itself. 40 00:03:09,660 --> 00:03:10,020 All right. 41 00:03:10,050 --> 00:03:12,300 So in summary, here's what's going to happen. 42 00:03:12,810 --> 00:03:16,350 Whenever I invoke the system, the term files create command. 43 00:03:16,380 --> 00:03:18,570 It will create three different things. 44 00:03:18,990 --> 00:03:22,600 It will create the Directory one and directly to Inverloch. 45 00:03:23,250 --> 00:03:27,950 It will also create F one inside directory one letter. 46 00:03:28,710 --> 00:03:33,150 I would invoke the remove command, which will do two different things as well. 47 00:03:33,180 --> 00:03:37,950 It will remove the F one file and then it will remove a dire one as well. 48 00:03:38,970 --> 00:03:39,540 All right. 49 00:03:39,900 --> 00:03:47,580 And finally, I'm going to invoke the clean command, which will remove any file that is older than 50 00:03:47,580 --> 00:03:50,460 30 seconds in dire, too. 51 00:03:51,230 --> 00:03:51,540 OK. 52 00:03:51,690 --> 00:03:54,300 I know that's a mouthful, but bear with me. 53 00:03:54,630 --> 00:03:56,490 I'll explain everything in detail. 54 00:03:57,350 --> 00:03:57,500 OK. 55 00:03:57,630 --> 00:03:59,430 So I'm gonna save an exit. 56 00:04:01,470 --> 00:04:03,570 I'll go to the VAR log directory. 57 00:04:05,040 --> 00:04:06,690 I'll do a simple Ellis command. 58 00:04:07,080 --> 00:04:11,390 And you can see nothing appears here for DYAR one or two. 59 00:04:11,850 --> 00:04:14,030 Now fire run the command system. 60 00:04:14,040 --> 00:04:18,269 Dede asked him files that does create a hit enter. 61 00:04:18,930 --> 00:04:22,710 And then I run Ellis and they can see the magic happened. 62 00:04:23,040 --> 00:04:26,760 So I have to directress created which is dire one. 63 00:04:26,910 --> 00:04:29,990 And there are two inside Dyar one. 64 00:04:31,950 --> 00:04:37,620 There is the EF1 file that also specified in my attempt of Konsta configuration file. 65 00:04:37,830 --> 00:04:38,340 Amazing. 66 00:04:38,460 --> 00:04:50,730 Now what if I run the command system, the temp files that does remove hit enter Ellis actually go back 67 00:04:50,730 --> 00:04:51,120 here. 68 00:04:52,080 --> 00:04:59,190 As you can see when I run the command system did as temp files does does remove it actually removed 69 00:04:59,550 --> 00:05:05,400 the file EF1 inside Dyar one and it also removed the directory. 70 00:05:05,400 --> 00:05:07,110 Dyar one all by itself. 71 00:05:07,280 --> 00:05:07,590 Okay. 72 00:05:07,950 --> 00:05:14,070 Now the only remaining thing I have right here in front of you is the dial to directory. 73 00:05:14,400 --> 00:05:15,780 So I'm gonna go inside it. 74 00:05:18,120 --> 00:05:20,460 I'll create simple files here. 75 00:05:21,150 --> 00:05:25,110 I'm gonna call it F1, F2, F3 and F4. 76 00:05:26,890 --> 00:05:32,750 You can do a simple Ellers and then I'm gonna invoke the command system data files. 77 00:05:33,120 --> 00:05:35,060 That's dash clean, Ellis. 78 00:05:35,800 --> 00:05:37,900 Oh, nothing has been cleaned. 79 00:05:37,920 --> 00:05:38,700 Why is that? 80 00:05:38,970 --> 00:05:42,990 Remember, the age parameters specified were 30 seconds. 81 00:05:43,170 --> 00:05:48,440 So I can not remove the files if they are not older than 30 seconds. 82 00:05:48,450 --> 00:05:50,100 So let's run the sleep. 83 00:05:51,240 --> 00:05:52,680 30 second command. 84 00:05:53,190 --> 00:05:59,340 So after the 30 seconds are done, I'll be able to invoke the same command. 85 00:05:59,350 --> 00:06:00,990 The system needs ten files. 86 00:06:01,030 --> 00:06:06,450 That's just clean and it will remove all the files inside of there. 87 00:06:06,480 --> 00:06:08,490 Two or at least I hope so. 88 00:06:08,970 --> 00:06:11,130 So let's just wait for a bit here. 89 00:06:11,310 --> 00:06:13,510 I know it's taking some time, but you know what? 90 00:06:14,400 --> 00:06:15,840 It's totally worth it. 91 00:06:15,860 --> 00:06:16,830 At the end of the day. 92 00:06:22,350 --> 00:06:22,570 OK. 93 00:06:22,800 --> 00:06:24,390 So the 30 second are done. 94 00:06:25,080 --> 00:06:27,160 Let me clear this messy screen. 95 00:06:28,140 --> 00:06:29,430 Let me see Ellis. 96 00:06:29,750 --> 00:06:29,900 OK. 97 00:06:30,060 --> 00:06:31,560 The files are still there. 98 00:06:32,160 --> 00:06:39,960 But with one run of this powerful command, everything is cleaned up. 99 00:06:40,620 --> 00:06:42,070 You have to be honest with yourself. 100 00:06:42,090 --> 00:06:43,230 This is total magic. 101 00:06:43,260 --> 00:06:43,770 You're right. 102 00:06:44,610 --> 00:06:47,520 Okay, so I'm going to clean the screen. 103 00:06:48,330 --> 00:06:53,650 Go back and forth. 104 00:06:54,120 --> 00:06:54,570 That's it. 105 00:06:54,630 --> 00:07:03,630 Now, if you want to know more about the system, the Dustin files, you can visit the main page of 106 00:07:04,160 --> 00:07:05,700 system data and files. 107 00:07:06,540 --> 00:07:10,440 It will show you all the different commands you can run for. 108 00:07:10,470 --> 00:07:11,160 System. 109 00:07:11,250 --> 00:07:12,530 The Dustin file. 110 00:07:12,570 --> 00:07:14,070 So they create command. 111 00:07:14,070 --> 00:07:18,240 As you can see here, it's mentioned the clean command, the remove command. 112 00:07:18,810 --> 00:07:21,270 And actually, there are many more commands as well. 113 00:07:21,840 --> 00:07:26,790 But it only covered the most important ones that you are going to use on a frequent basis. 114 00:07:27,260 --> 00:07:27,610 OK. 115 00:07:27,990 --> 00:07:33,130 You can also visit the main page of temp files, the D. 116 00:07:33,630 --> 00:07:39,870 And this will actually show you how to write the configuration files for your temporary files. 117 00:07:40,320 --> 00:07:40,720 All right. 118 00:07:40,740 --> 00:07:42,240 So it's actually very useful. 119 00:07:42,600 --> 00:07:47,860 It will explain all the different parameters for the temporary files here. 120 00:07:47,900 --> 00:07:54,300 And you can see them the mode to the permissions, the other rights group and the age, as I just shown 121 00:07:54,300 --> 00:07:56,490 you in earlier in the video. 122 00:07:57,360 --> 00:07:57,800 OK. 123 00:07:58,410 --> 00:08:01,200 And so that's that's it for this video. 124 00:08:01,530 --> 00:08:02,790 I hope you guys enjoyed it. 125 00:08:03,100 --> 00:08:03,450 Char.