Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Linux Command rmdir " rf " options work in 1st VM but not in 2nd VM

user8860348Feb 3 2012 — edited Feb 3 2012
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 2 2012
Added on Feb 3 2012
1 comment
339 views