snipt

Ctrl+h for KB shortcuts

Bash

compact Firefox (and other Mozilla product) databases

1
2
3
4
# make sure sqlite is installed
sudo apt-get install sqlite3
# vacuum'em-all
find ~/.mozilla -name "*.sqlite" -exec sqlite3 {} "VACUUM;" \;
https://snipt.net/embed/31bfb236664390862401f1f43f3970ba/
/raw/31bfb236664390862401f1f43f3970ba/
31bfb236664390862401f1f43f3970ba
bash
Bash
4
2019-08-19T18:00:13
True
False
False
/api/public/snipt/5721/
compact-firefox-and-other-mozilla-product-databases
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># make sure sqlite is installed</span> </span><span id="L-2"><a name="L-2"></a>sudo apt-get install sqlite3 </span><span id="L-3"><a name="L-3"></a><span class="c1"># vacuum&#39;em-all</span> </span><span id="L-4"><a name="L-4"></a>find ~/.mozilla -name <span class="s2">&quot;*.sqlite&quot;</span> -exec sqlite3 <span class="o">{}</span> <span class="s2">&quot;VACUUM;&quot;</span> <span class="se">\;</span> </span></pre></div> </td></tr></table>
compact, database, firefox, mozilla, sqlite, thunderbird, vacuum