List only empty directories and delete safely (=ask for each)

find . -type d -empty -exec rm -i -R {} \;
Will delete empty directories and sub-directories (hideen too = whose names are starting with dot .). Used 'rm' command instead of 'rmdir' to give the possibility of asking for confirmation before deleting i.e. it is not wise do delete all empty directories in /etc folder. Replace dot in 'find .' with any for other starting directory instead of current. in 'rm -i -R' 'i' stands for ask before delete and 'R' for delete folder recursively or folder itself if it is empty

0
By: knoppix5
2020-03-29 13:12:21

What Others Think

The article is really nice and interesting. I have searched for this type of information and would love to read this information. I hope you will share more useful articles like that. Thanks for sharing! t rex game
starjackioaz · 116 weeks and 3 days ago
I can try this command because my system is too heavy so I want to delete empty directories and make my system fast just similar to melbourne couriers same day which is the fastest parcel delivery service who departure your products on the same day.
graigalley · 116 weeks ago
This article is really relevant to what I was trying to find. Thank you for this. I also found some video tutorials at Write My Assignment | AssignmentsExperts.co.uk that was also helpful for me.
jasonexpert · 101 weeks and 4 days ago
This query is run every time I also use it for deleting files and I may check the logo design price in pakistan for getting the best designing for business.
kanemarry · 93 weeks and 1 day ago
great content! will recommend this site to my friends best breast augmentation tulsa
looneyhans · 87 weeks and 3 days ago
I concur with the last tips whereby we have to manhandle what is eminent and inclining. By doing in that limit you can continue making something which is new and in the present style https://www.taini.in/jaipur-escorts-service.html
sumanrajput · 83 weeks and 4 days ago
This post is cleared up in a to an awesome degree able way. The detail with which it is clarified is so skilled. I am perplexed by the manner by which you have cleared up things here. http://www.independentescortjaipur.in/ http://www.femalejaipurescort.in/ http://www.jaipurcallgirlsservice.in/ http://www.sweetasinha.com/ http://www.jaipur-escort-girls.com/
sumanrajput · 83 weeks and 4 days ago
Hello, Extremely mind blowing this essential settlement are to an extraordinary degree bewildering and exceptionally pleasing for my control much thanks and sorry for my underwriting to set up everything here. http://www.jaipurescortservice.org/ http://www.jaipurqueen.in/ http://www.jaipurescortservice.insss/ http://www.celebrityescortsinjaipur.com/ https://www.jaipurvipcallgirls.com/
sumanrajput · 83 weeks and 4 days ago
Good data, basic and amazing graph, as offer all around completed with splendid insights and musings, piles of incredible data and motivation, the two of which I require, due to offer such a consistent data here http://www.modelcallgirlsjaipur.com/ http://www.alicja.in/ http://www.jaipurmodelescorts.co.in/ http://www.jainakapoor.in/ http://www.escortinjaipur.net/
sumanrajput · 83 weeks and 4 days ago
nice seospokanecompany.com
looneyhans · 82 weeks and 6 days ago
nice very great post! amarilloweddingphotographers.com
Killersmile · 82 weeks and 3 days ago
this is awesome! thanks for sharing! laser hair removal
idasanka · 78 weeks and 1 day ago
cleaning services orlando This is great! Thanks so much!
yeoyeo · 76 weeks and 4 days ago
thank you for this! really appreciate you doing this pray
sammm · 73 weeks and 3 days ago
I have been a standard guest on your site for about a year. Up until this point, you all around shared quality and significant articles. Considering, investigating your articles got one of my redirection chips away at during my available time. http://www.jaipurescortagency.com/"> Call Girls in Jaipur
sumanrajput · 71 weeks and 2 days ago
[url=http://www.retika.in/]Escorts in Jaipur[/url]
sumanrajput · 71 weeks and 2 days ago
hi
anvithatc · 68 weeks and 6 days ago
hi, thanks for sharing good information . for more click on: 13377x
anvithatc · 68 weeks and 6 days ago
Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks trip to isla mujeres
xoheko1229 · 68 weeks and 6 days ago
Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thankstulum from cozumel
xoheko1229 · 68 weeks and 6 days ago
I high appreciate this post. It’s hard to find the good from the bad sometimes, but I think you’ve nailed it! would you mind updating your blog with more information? yucatan cuisine
xoheko1229 · 68 weeks and 1 day ago
I really thank you for the valuable info on this great subject and look forward to more great posts. Thanks a lot for enjoying this beauty article with me. I am appreciating it very much! Looking forward to another great article. Good luck to the author! All the best! luxury hotel in tulum
xoheko1229 · 68 weeks and 1 day ago
Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. restaurant in tulum mexico
xoheko1229 · 68 weeks ago
You have done a great job on this article. It’s very readable and highly intelligent. You have even managed to make it understandable and easy to read. You have some real writing talent. Thank you.
xoheko1229 · 67 weeks and 4 days ago
You have done a great job on this article. It’s very readable and highly intelligent. You have even managed to make it understandable and easy to read. You have some real writing talent. Thank you. best places to stay in playa del carmen
xoheko1229 · 67 weeks and 4 days ago
I felt very happy while reading this site. This was really very informative site for me. I really liked it. This was really a cordial post. Thanks a lot!. restaurant holbox beach
xoheko1229 · 67 weeks and 2 days ago
I am amazed by the way you have explained things in this article. This article is quite interesting and I am looking forward to reading more of your posts. Thanks for sharing this article with us. cabinets santa fe
aegyjingoo · 64 weeks and 3 days ago
Roulette, baccarat, Black jack and poker remain the most popular but you will find many other games Ivip9 and the best thing is that the betting process is pretty much the same as in a real casino. All the major credit cards are accepted and the whole machinery runs smoothly.
bebasik · 60 weeks and 3 days ago
I don't have to worry now! eyelash extensions cincinnati
geebranz · 58 weeks and 4 days ago
la collision repair
henrywang2531 · 52 weeks and 4 days ago
Awesome blog! Do you have any tips for aspiring writers? I’m hoping to start my own site soon but I’m a little lost on everything. Would you advise starting with a free platform like WordPress or go for a paid option? There are so many choices out there that I’m totally overwhelmed .. Any suggestions? Thanks! http://deutschland-news.org/2021/06/30/on-line-baccarat-activity/">On line Baccarat Activity
robinjack · 51 weeks and 1 day ago
[url=http://deutschland-news.org/2021/06/30/on-line-baccarat-activity/]On line Baccarat Activity[/url]
robinjack · 51 weeks and 1 day ago
pool service los angeles
goodboy · 50 weeks and 6 days ago
arborist west austin tx
henrywang2531 · 48 weeks and 3 days ago
Google ads agency ho chi minh
henrywang2531 · 46 weeks and 6 days ago
I beloved as much as you will obtain performed right here. The comic strip is attractive, your authored subject matter stylish. nonetheless, you command get got an impatience over that you would like be handing over the following. sick unquestionably come more before again since precisely the same just about very regularly inside of case you shield this hike. nembutale Dosierung
robinjack · 46 weeks and 1 day ago
The Premier Pool Leak Detection & Repair Expert In ?Los Angeles. pool leak los angeles
henrywang2531 · 37 weeks and 4 days ago
I have read your blog it is very helpful for me. I want to say thanks to you. I have bookmark your site for future updates. emergency plumber hove
xolabemo · 34 weeks and 5 days ago
very interesting post.this is my first time visit here.i found so many interesting stuff in your blog especially its discussion..thanks for the post! Walworth valves uae
xolabemo · 30 weeks and 2 days ago
Great content material and great layout. Your website deserves all of the positive feedback it’s been getting. Bathroom Supplies
xolabemo · 29 weeks and 5 days ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. double sided tape suppliers
xolabemo · 28 weeks and 3 days ago
Buy Psychedelics Online in USA here at your favorite psychedelics shop. Welcome to the BuyPsychedelicsUSA, The place for all your psychedelic drug and herbs. You’re at the right place to receive new experiences, insights, experiences. BuyPsychedelicsUSA has a large collection of products such as DMT, Magic Mushroom ,LSD , kratom, Ayahuasca and more . buy psychedelics online Take the time to see everything and don’t hesitate to contact us if you have questions or for advice. buy legal psychedelics online is usa uk and australia. buy dmt online buy lsd online buy ayahuasca online ibogaine for sale mdma for sale buy kratom online buy mescaline online buy mushroom online buy psychedelics online usa 4 ACO DMT For Sale Buy 5 MEO DMT Online buy dmt online NN DMT Erowid For Sale dmt vape pens for sale Changa DMT buy lsd gel tabs liquid lsd for sale buy lsd online buy psychedelics online Buy dmt online 5 meo dmt for sale 4-aco-dmt for sale dmt dose how to smoke dmt whats dmt making dmt 4aco dmt smooking dmt mushroom edibles magic mushroom chocolate how to make dmt how long does dmt last buy magic mushrooms online stiiizy pods buy magic mushrooms online Psychedelic Magic Mushrooms For Sale Online Where Can I get Psilocybin Mushroom Online What Are Psilocybins Mushroom buy magic mushrooms online shop dry magic mushroom buy mushroom capsules online shop psilocybin magic mushroom buy magic mushroom edibles buy thc carts online buy thc carts online THC Vapes Carts For Sale Buy Prefilled Vape Cartridges THC Vape Pens For Sale Best THC Vape Cartridge buy dmt online buy lsd online buy psychedelics online Buy dmt online 5 meo dmt for sale 4-aco-dmt for sale https://thcbulksupplies.com buy weed online buy stiiizy pods online buy marijuana online with worldwide shipping buy weed online usa buy weed online Weed For Sale Online in USA where to buy weed online Buying Weed Online Where To Buy Weed Online in USA Buy magic mushrooms Buy nembutal Online 4 aco dmt australia 4 aco dmt buy usa 4 aco dmt for sale 4 aco dmt supplier 4 aco dmt uk 5 meo dmt buy 5 meo dmt where to buy acid blotter paper ayahuasca tea canada Ayahuasca tea for sale buy 5 meo dmt Canada buy 5 meo dmt online Buy ayahuasca tea online Buy DMT Buy DMT online Buy DMT online Canada buy dmt online usa buy dmt vape pen buy liquid lsd Buy lsd Buy LSD acid Buy LSD Gel Tabs online buy lsd online buy LSD tabs online buy lysergic acid DMT for sale dmt pen dmt vape DMT Vape Pen DMT vape pen for sale online dmt vape pens DMT Vape Cartridge LSD acid for sale LSD blotter paper for sale LSD blotter sale lsd blotters for sale lsd for sale lsd for sale online lsd gel tabs lsd tabs for sale lysergic acid for sale Order ayahuasca tea online purchase ayahuasca tea Where can I buy 5-MeO-DMT online Where can I buy ayahuasca tea a href="https://thcbulksupplies.com/"rel="dofollow">buy weed online buy stiiizy pods online buy marijuana online with worldwide shipping buy marijuana edibles online smart bud moon rocks for sale buy cbd oil online dank vapes for sale order brass knuckles online stiiizy pod exotic carts moon rocks drugs buying weed online acdc weed granddaddy purple near me buy new york city diesel grape god strain buy 30 cannabis fat burner capsules buy marijuana flowers online buy sun rocks online buy red congolese live resin online buy pre-rolled joints online buy real weed onlin cheape buy sour diesel online mail order weed order marijuana online weed for sale pineapple punch strain backwood preroll where can i buy weed online buy weed online usa tko carts order weed online buy medical weed online buy weed online usa buy legal weed online where can i buy weed online can you buy weed online order marijuana online marathon-og buy psychedelics online in usa buy weed online in usa
snupdablogger · 22 weeks and 6 days ago
very interesting post, keep it going pool cleaning service los angeles
zekke · 21 weeks and 6 days ago
I think it's worth a try. foundation repair woodstock
SpanishDuck · 21 weeks and 3 days ago
where to get shrooms dried mushrooms african pyramid mushroom african transkei mushroom albino penis envy b+ mushrooms blue meanies mushroom brazilian magic mushroom burmese mushroom golden teacher mushroom ko samui super strain malabar coast martinique mexican mushroom mushroom british columbia super thai mushroom nepalese chitwan mushroom penis envy texas penis envy 6 texas yellow caps vietnamese white jedi mind fuck tri coloured ecuadorian mushroom magic mushsroom edibles mexican cubensis psychedelic chocolate bar where to get shrooms dried mushrooms african pyramid mushroom african transkei mushroom albino penis envy b+ mushrooms blue meanies mushroom brazilian magic mushroom burmese mushroom golden teacher mushroom ko samui super strain malabar coast martinique mexican mushroom mushroom british columbia super thai mushroom nepalese chitwan mushroom penis envy texas penis envy 6 texas yellow caps vietnamese white jedi mind fuck tri coloured ecuadorian mushroom magic mushsroom edibles mexican cubensis psychedelic chocolate bar midnight mint psychedelic chocolate bar origin mango psilo gummies 0.25g-1g origin strawberry psilo gummies 0.25g-1g penis envy psychedelic chocolate bar psilocybin cube gummies vegan dark chocolate psychedelic chocolate bar microdoses brain capsules 50mg-200mg chill capsules 50mg-200mg clarity capsules 50mg-200mg health capsules 50mg-200mg love capsules 50mg-200mg mood capsules 50mg-200mg pure capsules 50mg-200mg social capsules 30 pack 350mg social capsules 5 pack 350mg
johnson20007 · 21 weeks and 1 day ago
IT LABS PRO est la meilleure société de services d'ingénierie informatique au Maroc, en vous déplaçant à son siège à Marrakech - gueliz vous allez bénéficier des meilleurs services de création de sites et applications de gestion web, cette dernière privilégie ses clients et mettez à leur disposition toutes ses ressources pour l'accomplissement de leurs projets tout en offrant son expertise en conseillant ses clients et les accompagnant pour améliorer leurs images sur intérêt et mieux gérer leurs business. http://www.itlabspro.com/creation-site-web-maroc
itlabspro · 13 weeks and 6 days ago
IT LABS PRO est la meilleure société de services d'ingénierie informatique au Maroc, en vous déplaçant à son siège à Marrakech - gueliz vous allez bénéficier des meilleurs services de création de sites et applications de gestion web, cette dernière privilégie ses clients et mettez à leur disposition toutes ses ressources pour l'accomplissement de leurs projets tout en offrant son expertise en conseillant ses clients et les accompagnant pour améliorer leurs images sur intérêt et mieux gérer leurs business. Creation site web maroc
itlabspro · 13 weeks and 4 days ago
[url=https://maltesepuppyusa.com]maltese puppies for sale georgia[/url] [url=https://frozen-exporters.com]brazilian halal frozen chicken[/url] [url=https://www.420mailorder.net/]mail order marijuana[/url] [url=https://frozenchicken.net/]frozen chicken[/url]
jackbilla01 · 8 weeks and 3 days ago
If you love to wear movies and celebrity outfits so So here's the Tom Cruise bomber jacket for you, this jacket is available in two different types of leather so upgrade your style with this amazing tom cruise leather jacket.
emmawatson3848 · 3 weeks and 3 days ago
Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com - Commandlinefu.Com
seofox · 2 weeks and 3 days ago
I feel that many people are interested in developers but do you know how much they worked hard to achieve their goals. How much do they earn? Visit Celebritys Net Worth and read about their lifestyles.
emmeholt · 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: