Conversation
Notices
-
what is the difference between rm and rmdir if you are removing a folder
Thursday, 10-Nov-16 23:22:34 UTC from web-
@mushi ?
-
@mushi Nothing. I'm pretty sure rmdir is actually just a shortcut for rm -f
-
@ceruleanspark alright, thanks
-
@ceruleanspark @mushi There's a pretty significant difference.
'rmdir' will only removea single _empty_ folder.
'rm' will never remove a directory, unless using '-r' (recursive) which will delete the entire tree using the given path regardless of folder emptiness. -
@mmn oh, thanks ^^
-