Originally posted by canay
I can't remove file or dir unless -f parameter in redhat 7.2
#rm -r abc
rm: descend into directory `abc'? y
drwxr-xr-x 2 root root 4096 Oca 20 20:24 abc
but "rm -rf abc" command (with force) delete it.
Normally 'rm' should say "descent into directory" and if you enter 'y' (as you did) it should ask you "remove directory abc" (which it didn't).
Try unsetting the rm alias (rm does not ask you for confirmation by default, only if rm is invoked with the -i option. Eventhough you don't type the -i, your redhat may be configured to do that automatically for you).
Type "unalias rm" then try to remove a directory.