Will "rm -rf *" remove all files/folders in the current directory ?

Posted by Olivier Lalonde on Super User See other posts from Super User or by Olivier Lalonde
Published on 2010-04-02T01:16:08Z Indexed on 2010/04/02 1:23 UTC
Read the original article Hit count: 368

Filed under:

Will "rm -rf *" remove all files/folders in the current directory ? I want to make sure the wildcard * won't move up in upper directories and erase all my filesystem :D

I remember doing "chmod 777 .* -R" to chmod hidden files and it chmodded all my filesystem. Obviously, I was on the root account.

© Super User or respective owner

Related posts about shell