Conversation

Notices

  1. what is the difference between rm and rmdir if you are removing a folder

    Thursday, 10-Nov-16 23:22:34 UTC from web
    1. @mushi ?

      Thursday, 10-Nov-16 23:22:41 UTC from web
    2. @mushi Nothing. I'm pretty sure rmdir is actually just a shortcut for rm -f

      Thursday, 10-Nov-16 23:23:27 UTC from web
      1. @ceruleanspark alright, thanks

        Thursday, 10-Nov-16 23:24:12 UTC from web
      2. @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.

        Thursday, 10-Nov-16 23:30:36 UTC from social.umeahackerspace.se at 63°49'42"N 20°15'34"E
        1. @mmn oh, thanks ^^

          Thursday, 10-Nov-16 23:37:36 UTC from web