What is the difference between rm --dir <directory>
and rmdir <directory>
with respect to removing empty directories?
Also, if they are similar, is there any advantage of having an rmdir
command considering that it is limited only to the removal of empty directories and that the rm
command can achieve the same functionality (and a lot more) with its numerous options?