rm -rf


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting rm -rf
# 1  
Old 08-22-2006
rm -rf

Hi
I am logged in as sudo root , I have large number of sub dirs under directories , there are around 65535 dirs, want to remove all of them,
rm -rf *, asks me
examine files in directory STORE (yes/no)?
for every dir ....

please suggest a solution.

Thanks,
Rajesh
# 2  
Old 08-22-2006
Run 'alias'. This will show you if rm is aliased to 'rm -i'. If it is, then run 'unalias rm' to remove the alias and then run the command.
# 3  
Old 08-22-2006
Quote:
Originally Posted by Rajesh Gohad
Hi
I am logged in as sudo root , I have large number of sub dirs under directories , there are around 65535 dirs, want to remove all of them,
rm -rf *, asks me
examine files in directory STORE (yes/no)?
for every dir ....

please suggest a solution.

Thanks,
Rajesh
Try /bin/rm -rf *
# 4  
Old 08-22-2006
Thanks a lot ! .....
# 5  
Old 08-22-2006
Another way to temporarily unalias a command is to preceed it with a backslash, for example:
Code:
\rm -rf *

# 6  
Old 08-22-2006
Thanks for ur reply. ...it works cool
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question