1 00:00:01,690 --> 00:00:03,250 ‫It stands for remove. 2 00:00:03,280 --> 00:00:09,310 ‫So the RIM command is used to remove objects such as files, directories, symbolic links and so on 3 00:00:09,310 --> 00:00:12,880 ‫and so forth from the file system of Linux. 4 00:00:14,230 --> 00:00:21,490 ‫The d'assurer parameters used to remove directories and their contents recursively dash parameters used 5 00:00:21,490 --> 00:00:23,230 ‫to remove empty directories. 6 00:00:23,920 --> 00:00:28,810 ‫Dash F parameter is used to ignore non-existent files and arguments. 7 00:00:30,330 --> 00:00:35,730 ‫This command normally works silently, and you should be very careful, actually when you're running 8 00:00:35,730 --> 00:00:42,000 ‫arm commands, because once you delete the files, then you are not able to recover the contents of 9 00:00:42,000 --> 00:00:43,300 ‫these files and directories. 10 00:00:43,320 --> 00:00:43,590 ‫All right. 11 00:00:44,520 --> 00:00:47,240 ‫But with that being said, let's see how it works. 12 00:00:48,280 --> 00:00:53,590 ‫So list all the files that start with temp, as you can see, I've got two directories. 13 00:00:54,160 --> 00:00:57,610 ‫The second one temp one is the folder that's empty. 14 00:00:58,390 --> 00:01:01,090 ‫So first I'm going to try to remove the temp folder. 15 00:01:01,900 --> 00:01:07,150 ‫Now, when I try to remove non empty directories without parameters, I'll get an error. 16 00:01:07,840 --> 00:01:08,620 ‫That's a good thing. 17 00:01:09,610 --> 00:01:14,140 ‫So if I use Dash D parameter for a non empty folder, I'll get an error again. 18 00:01:15,640 --> 00:01:22,930 ‫So I need to remove this non empty folder with the dash rf parameter that forces and removes directories 19 00:01:23,380 --> 00:01:25,360 ‫like I said recursively. 20 00:01:26,890 --> 00:01:28,330 ‫So it's list directories. 21 00:01:32,910 --> 00:01:33,270 ‫OK. 22 00:01:33,300 --> 00:01:40,260 ‫That temp folder is no longer available, so we use the dashti parameter to remove an empty folder named 23 00:01:40,260 --> 00:01:40,890 ‫temp one. 24 00:01:49,530 --> 00:01:51,330 ‫And we'll listen directories again. 25 00:02:00,570 --> 00:02:01,020 ‫What? 26 00:02:01,290 --> 00:02:03,240 ‫There's no directory that starts with temp. 27 00:02:04,300 --> 00:02:04,900 ‫Good job. 28 00:02:05,080 --> 00:02:05,410 ‫All right.