How to delete an entire directory via SSH

I know this is probably common knowledge to Linux and Unix geeks but every time I need to remove a directory in my SSH terminal I search to google for the command. So here it is for anyone else who’s out there and googling!

rm = remove / delete
-r = recursively deletes the directory and all files in it, including subdirectories
-f = will not ask for confirmation before deleting

Share if you like...Share on FacebookTweet about this on TwitterShare on Google+Pin on PinterestShare on TumblrEmail this to someone

Leave a Reply