Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Meh, it's well known but seldom used as it'll only remove an empty dir. Useful if you want to ensure its empty before purging, but in reality that's a niche use case these days.
-
hjk10156964y@AlmondSauce it's quite handy to remove dangling directories. We had a piece of software that balanced uploads by creating 3 layers of directories. This worked well but as it also did this for temporary files and we had many instances running so it would exhaust inode count.
A scheduled find with rmdir worked wonders. -
@hjk101 Yeah there's situations like that where it's useful - but I'd still class that as a bit of a niche use case.
Related Rants
-
gururaju56*Now that's what I call a Hacker* MOTHER OF ALL AUTOMATIONS This seems a long post. but you will definitely ...
-
linuxxx70This guy at my last internship. A windows fanboy to the fucking max! He was saying how he'd never use anythi...
-
creedasaurus62Another dev on my team just got a new machine. Before he came in today I made two separate USB installers and ...
I can't be the only one who didn't know that Linux has a specific command to delete a directory
I've used Linux all my developer career and I never knew the command 'rmdir' existed. I always just used 'rm -rf'
random
linux