• 1 Post
  • 135 Comments
Joined 2 years ago
cake
Cake day: July 1st, 2023

help-circle












  • I don’t think there’s any reason to use rmdir unless you write (Ba)sh scripts, and you want to make sure that the directory is indeed empty. Just use rm -r.

    Also note that you can use rmdir -p this/is/some/path to remove all nested directories including the parent (this here). But this will only work if there’s exactly one directory per parent directory, and the last directory doesn’t have any files (including directories). This might be helpful for some scripts.

    rmdir -r isn’t a thing, because that would invalidate the reason this command exists.








  • Non-corporate users use Ubuntu? Last time I tried it, I have encountered bugs on day one, and I nearly instantly switched to random distro with KDE (openSUSE, which also I dislike btw).

    Also I have very ‘fond’ memories of using it in about 2011-2013 where the program crashing message is burnt into my mind, because how often it appeared, and sometimes even the error reporting tool was crashing for some reason.