Linux Command rmdir " rf " options work in 1st VM but not in 2nd VM
Folks,
Hello. I am installing Oracle 11gR2 RAC using 2 Virtual Machines (rac1 and rac2 whose OS are Oracle Linux 5.6)
I need to delete the directory /u01 that is not empty and has many contents in both VMs rac1 and rac2.
I use this Linux command: # rmdir -rf u01/
[root@rac1 /]# rmdir -rf u01/
The non-empty directory /u01 is removed successfully in rac1.
But in rac2, this command is not working. Its error message is: r option is invalid.
I try the command: [root@rac2 /]# rmdir --help
Output: -p remove directory and its ancestors.
-v verbose output a diagnostic for every directory processed.
As you see, there are no "r" and "f" options in the VM rac2. But in the first VM rac1, "r" and "f" options work correctly.
My questions are:
First, do any folks understand how to delete the non-empty directory /u01 in the second VM rac2 ?
Second, why the same command rmdir has different options in the 2 VMs ?
Thanks.