Cleanup firefox's database.

pgrep -u `id -u` firefox-bin || find ~/.mozilla/firefox -name '*.sqlite'|(while read -e f; do echo 'vacuum;'|sqlite3 "$f" ; done)
Sqlite database keeps collecting cruft as time passes, which can be cleaned by the 'vacuum;' command. This command cleans up the cruft in all sqlite files relating to the user you have logged in as. This command has to be run when firefox is not running, or it will exit displaying the pid of the firefox running.

11
By: kamathln
2009-08-22 10:36:05

2 Alternatives + Submit Alt

What Others Think

The first part isn't strictly necessary, right? Since sqlite will fail gracefully if firefox is already running? I think you could use find to do everything, with an admittedly odd-looking -exec argument: find ~/.mozilla/firefox -name "*.sqlite" -exec bash -c "<<<'vacuum;' sqlite {}" \; using "here documents" to substitute a string for stdin. Putting echo before bash helps to see what commands would be run without running them :-).
bwoodacre · 797 weeks and 2 days ago
Yeah. I guess so. I was ujst being extra carefull with the pid part. With the "do everything with find, I do completely agree with you. And it is better too, because it will correctly handle if there is a newline in the file name. Whereas my code will fail miserably. But I would like to point out that you need to be carefull with your quotes. find ~/.mozilla/firefox -name '*.sqlite' -exec bash -c "
kamathln · 795 weeks and 3 days ago
Wow, all this seemed to do it delete my profile. -1
nbv4 · 795 weeks and 3 days ago
@nvb4 delete your profile?? wierd. That should never happen unless your sqlite files were corrupted in the first place. Did you use a wrong version of sqlite?
kamathln · 794 weeks and 6 days ago
Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale pug puppies indiana Amazing! This blog looks just like my old one! It's on a completely different subject but it has pretty much the same layout and design. Wonderful choice of colors!
rahimhh21 · 117 weeks and 3 days ago
Since 2008, Perfect House Pug Puppies has been the leading Pug puppy breeder in the US, providing premium Pug puppies for sale. Each puppy exhibits the professionalism and knowledge that have set Perfect House Pug puppies apart from other pug puppy breeders. The professionals at Perfect House Pug Puppies are dedicated about finding their puppies loving, beloved homes where they can enjoy long, healthy lives. A companion that has been produced for quality, health, and temperament that satisfies the breed standard is guaranteed by Perfect House Pug puppies, the pug breeder that has set the benchmark for exceptional customer satisfaction. If you are looking to buy a baby pug, Black and white pugs, Mini pug puppies for sale, Black and tan pug for sale, Teacup pug puppies for sale, Female pug puppies, pug puppies for sale, pug puppies for sale near me, pug puppies for sale under $500 near me. Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies baby pug puppies for sale pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale
Perfecthomepugs · 109 weeks ago
EVERYONE in the family Priority number one. We're small-scale, in-home breeders. We're not a facility or a kennel; we're a group of Pug enthusiasts who are utterly smitten with our adorable kids. Perfect House of Pugs is just breathtaking! Our Pugs have the best temperaments and personalities. They are created specifically for families looking for a high-quality Pug puppy. With over 18+ years, we have fought for only the finest standards, with our Pugs' health as our primary emphasis, which is why we put EVERYTHING into it, never cutting corners, always changing, and always improving. Our children are our greatest source of pride and delight. Our mission is to build connections (rather than merely sell puppies) and to bring pleasure and joy into your household. We are raising a Pug family and are certain that these puppies will become an integral part of your life. PLEASE VISIT OUR WEBSITE LINK BELLOW FOR MORE INFORMATION ABOUT PUG PUPPIES. PUG PUPPY ADOPTION Pug puppies for sale PUG PUPPIES FOR SALE NEAR ME PUG PUPPIES NEAR ME PUG PUPPIES FOR SALE UNDER 500 NEAR ME CUTE PUG PUPPIES BLACK PUG PUPPIES BLACK PUG PUPPIES FOR SALE PUG PUPPIES FOR ADOPTION BLACK PUG PUPPIES FOR SALE NEAR ME CHIHUAHUA PUG MIX PUPPIES TEACUP PUG PUPPIES HOW MUCH IS A PUG PUPPY BABY PUG PUPPIES PICTURES OF PUG PUPPIES PUG PUPPIES FOR SALE IN OHIO PUG PUPPIES FOR SALE IN PA PUG PUPPIES PRICE PUG MIX PUPPIES TEACUP PUG PUPPIES FOR SALE BABY PUG PUPPIES FOR SALE BEST FOOD FOR PUG PUPPY NEWBORN PUG PUPPIES PUG PUPPIES CRAIGSLIST PUG PUPPIES FOR SALE CRAIGSLIST WHITE PUG PUPPIES PUG PUPPIES FOR SALE IN MICHIGAN PUG PUPPIES FOR SALE UNDER 500 ADORABLE PUG PUPPIES BRINDLE PUG PUPPY HOW MUCH DOES A PUG PUPPY COST PITBULL PUG MIX PUPPIES PUGS FOR SALE NEAR ME PUG PUPPIES FOR SALE 200 PUG PUPPIES FOR SALE IN NJ PUG PUPPIES FOR SALE IN WISCONSIN PUG PUPPIES MICHIGAN PUG PUPPY COST MERLE PUG PUPPY FOR ADOPTION BEST PUG PUPPY FOOD ROYAL CANIN PUG PUPPY FOOD FAWN PUG PUPPY PUG PUPPIES FOR SALE FLORIDA PUG PUPPIES FOR SALE IN INDIANA PUG PUPPIES FOR SALE IN KY PUG PUPPIES FOR SALE IN NC PUG PUPPIES FOR SALE IN TEXAS PUG PUPPIES FOR SALE MN PUG DOG PUPPY AKC REGISTERED PUG PUPPIES FOR SALE PUG ALL BLACK CHEAP PUG PUPPIES FOR SALE NEAR ME PUGS PUPPIES FOR SALE CHEAP PUG PUPPIES FOR SALE IN CALIFORNIA MINIATURE PUG PUPPIES FOR SALE NEAR ME MINIATURE PUG PUPPIES FOR SALE CHEAP PUG PUPPIES FOR SALE IN NJ KNOWN FACTS ABOUT PUG PUPPIES ADOPT PUG PUPPIS RESCUE A PUG PUPPY PERFECT HOUSE OF PUGS PUG PUPPIES INSTAGRAM PINTEREST QUORA Google Page USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA USA
pugpuppies95 · 71 weeks ago
Selamat datang di Situs TIMUR188. Disini kami ingin membagikan sedikit informasi seputar Situs Judi Online Resmi Terbesar Indonesia yang benar-benar dapat Terpercaya. Tujuan utama blog yang kami sediakan ini adalah untuk memberikan beberapa informasi kepada teman-teman pencinta bettingan online agar nantinya tidak perlu lagi pusing-pusing mencari dimana harus melakukan bettingan yang aman serta benar-benar terpercaya. Situs Judi Online yang kami berikan disini sudah dijamin 100% akan kwalitas pelayanannya yang responsible dan sopan dalam melayanin member serta memiliki proses transaksi deposit maupun withdraw penarikan anda yang super cepat. ADAPUN EVENT PROMO MENARIK YANG BISA KALIAN NIKMATI DISITUS TIMUR188 , DIANTARANYA : ? Garansi Gacor 100% ? Event Pecah Perkalian DAPAT CHIPS S/D UNIT SMARTPHONE ? Event Roda Petir Zeuz Chip gratis tanpa TO bebas WD ? Bonus Rollingan Mingguan. ? Bonus Deposit Harian ? Proses cepat gak pake ribet !! Gabung sekarang juga jangan sampai ketinggalan promo bonus menarik yang sudah ditawarkan, segera klik langsung tombol yang disediakan diatas untuk bergabung dengan Situs TIMUR188 yang sudah kami Bagikan Terima kasih atas perhatian dan kerjasamanya telah berkunjung disini, semoga informasi yang kami rangkum dan kumpulkan diatas dapat bermanfaat serta membantu teman-teman kedepannya, SALAM JP !!
wandasuwari · 45 weeks and 6 days ago
Selamat datang di situs TIMUR188 Bagi kalian yang gemar bermain game online, kalian telah berada di tempat yang tepat. TIMUR188 adalah situs game online yang gacor dan terpercaya.Selamat datang di situs MAXIM178 Bagi kalian yang gemar bermain game online, kalian telah berada di tempat yang tepat.
projack · 41 weeks and 5 days ago
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic timur188
projack · 23 weeks and 5 days ago
Most games have a variety of winning combination of symbols, often posted on the face of the machine timur188
projack · 23 weeks and 5 days ago
Most games have a variety of winning combination of symbols, often posted on the face of the machine timur188
projack · 23 weeks and 5 days ago
Most games have a variety of winning combination of symbols, often posted on the face of the machine timur188
projack · 23 weeks and 5 days ago
it was awesome to learn more about technology timur188
projack · 23 weeks and 5 days ago
Very good, thank you for the information you have provided timur188
projack · 23 weeks and 5 days ago
Please note that this information is very important for everyday life, so don't ever get tired of continuing to learn timur188
projack · 23 weeks and 5 days ago
this taught me what the meaning of comfort and perfection of love timur188
projack · 23 weeks and 5 days ago
https://www.linkedin.com/pulse/free-roblox-robux-methods-10-best-ways-earn-2024-pc-gaming-news-ygync https://www.linkedin.com/pulse/free-32000-robux-generator-link-july-2024-latest-update-z73tc https://www.linkedin.com/pulse/guides-roblox-free-robux-2024-reasons-99999-july-games24x7-global-wizfc https://www.linkedin.com/pulse/free-fortnite-redeem-codes-2024-full-list-daily-emotes-mthxc https://www.linkedin.com/pulse/free-fortnite-redeem-full-list-2024-every-one-collect-wnnac https://medium.com/@eventings/cfdgh-sdfgs-dhsgh-66d7b146b31b https://plaza.rakuten.co.jp/egoogle/diary/202406240000/ https://www.onfeetnation.com/profiles/blogs/cdsgh-sdafgsd-hsdfgcvbshagsdfgdf https://tempaste.com/2Ye4W5yU1kV https://glot.io/snippets/gxewifrlv1 https://baskadia.com/post/848jd https://jsfiddle.net/bxu5o693/ https://rentry.co/c43wfm5x https://pastelink.net/yazvp85k https://hackmd.io/@dailyresearch/dfgsdvdvgasdfasdfdhs https://wandering.flarum.cloud/d/73763-cfddgh-sdfghsghnsfgjadfgasdgasdfasdf https://www.gamerlaunch.com/community/users/blog/6424928/2282998/cfdhjshg-adhsfjasfgh-gnxcvbsdfgasfdgsdfg/ https://gamma.app/docs/Etyrtywer-ahfsdghsfg-Vzsfgsdafasd-CVsdfgsdfgdf-y4nohttvg9ohqar https://telegra.ph/Ddsfgh-sdfcxbsfdgha-sfcxbsdfgsdfg-06-24 https://open.firstory.me/story/clxstq1yf001e01z4bgpk49y7 https://steemit.com/news/@sportdownblog/cdsfghsdfg-tsedrfhgfasd-gsfdfghsg-sdfgsdfgcsdgsdf https://herbalmeds-forum.biolife.com.my/d/83592-cxfg-sdfgs-xcvbshsdfg-d23sdf5sdfg-5sdfg http://molbiol.ru/forums/index.php?showtopic=1203211">http://molbiol.ru/forums/index.php?showtopic=1203211 https://forum.theknightonline.com/threads/cfdgh-sdfgvnfsdgjsf-cxvnssb-vcngssdfgsfg.463116/ https://www.litesn.com/forums/topic/11640/cghk-dfhsdjndmvcb-sfgnjmsfg-zvnbsrgfhsdfg/view/post_id/32104 https://supportlab.granicusideas.com/ideas/cdgj-sdfsghsgnjsfn-sfmsfb-cvnsfgsdd https://www.lifesshortlivefree.com/community/2a-news-and-politics/cfhgjdfhgjsf-gxvcfgnjshsdf-cvbsdfs-dgsdf/ https://forum.instube.com/d/100411-ccxf-sdgfd-ghsdfhs-vncxvnsfdghgxcz-gsdfgs5d4gsd4f https://forum.freeflarum.com/d/76183-csdfh-sadfhsgjns-bcsrasedgsdv-bshasgasdgsfd https://healingxchange.ning.com/photo/albums/cxfg-sdhasdfhg-dnsfxvbdzgasdfgad https://saphalaafrica.co.za/wp/question/cfdghjkdfhsdf-xnsfhasd-xcbnsrfhadsfasdfs/ https://foro.ribbon.es/topic/7647/cfhjk-dfghsfdg-hdfgjsdfgh-cxvndfgjsfhsdfg https://swipestudio.co/forums/discussion/general/cfdgh-sdfgs-hfsdgvcxnmsfsdf-gsdgfsd-fg https://click4r.com/posts/g/17205894/dfsg-hsfghsdf-hxcvnsrgsefgxcvbsdfgsdf
jubayersunkhan77 · 23 weeks and 1 day 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: