‫It stands for remove.
‫So the RIM command is used to remove objects such as files, directories, symbolic links and so on
‫and so forth from the file system of Linux.
‫The d'assurer parameters used to remove directories and their contents recursively dash parameters used
‫to remove empty directories.
‫Dash F parameter is used to ignore non-existent files and arguments.
‫This command normally works silently, and you should be very careful, actually when you're running
‫arm commands, because once you delete the files, then you are not able to recover the contents of
‫these files and directories.
‫All right.
‫But with that being said, let's see how it works.
‫So list all the files that start with temp, as you can see, I've got two directories.
‫The second one temp one is the folder that's empty.
‫So first I'm going to try to remove the temp folder.
‫Now, when I try to remove non empty directories without parameters, I'll get an error.
‫That's a good thing.
‫So if I use Dash D parameter for a non empty folder, I'll get an error again.
‫So I need to remove this non empty folder with the dash rf parameter that forces and removes directories
‫like I said recursively.
‫So it's list directories.
‫OK.
‫That temp folder is no longer available, so we use the dashti parameter to remove an empty folder named
‫temp one.
‫And we'll listen directories again.
‫What?
‫There's no directory that starts with temp.
‫Good job.
‫All right.