News for hackers. Stuff that matters.
Re:Why is the DOS path character "\"? (2005) by Felk on Friday February 26, 2021 @04:59AM (#26273126)
Technically deleting a directory is done with the rmdir command. But rm with flags is flexible enough that I've seen very few people use rmdir
Re:Why is the DOS path character "\"? (2005) by Anarch157a on Friday February 26, 2021 @05:22AM (#26273291)
rmdir is usefull when you want to remove all empty subdirs, without touching files or directories with files. Just do 'rmdir *' and you're done.
Re:Why is the DOS path character "\"? (2005) by account42 on Friday February 26, 2021 @05:47AM (#26273449)
I like using rmdir even for individual directories that I think are empty just so that I don't accidentally delete any files that I did not expect to be there.
Re:Why is the DOS path character "\"? (2005) by Splognosticus on Friday February 26, 2021 @12:58PM (#26277697)
I use it whenever I expect a directory to be empty and want an error if for whatever reason it isn't. It's a bit niche, but good to have in your toolbelt.