Follow

useful bash/zsh/fish command you might not know 

If you want to delete an empty folder, you might be tempted to use

rm -r

but this is dangerous - you could delete the wrong folder by accident and loose a lot of files.
Luckily, there's this command:

rmdir

which allows you to delete an empty directory, and will refuse to do anything if it's not empty!

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!