snipt

Ctrl+h for KB shortcuts

Bash

How to repair a corrupted FAT32 filesystem

dosfsck -w -r -l -a -v -t <DEVICE>
https://snipt.net/embed/7f179848d48bb1646df3df15ee92b7dc/
/raw/7f179848d48bb1646df3df15ee92b7dc/
7f179848d48bb1646df3df15ee92b7dc
bash
Bash
1
2019-06-23T06:50:04
True
False
False
Oct 07, 2013 at 04:21 AM
/api/public/snipt/85972/
how-to-repair-a-corrupted-fat32-filesystem
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>dosfsck -w -r -l -a -v -t &lt;DEVICE&gt; </span></pre></div> </td></tr></table>
bash, dosfsck, fat, filesystem, fs, repair, vfat

Bash

Find and remove files older than a certain date

find /path/to/dir -type f -mtime +30 -exec rm {} \;
https://snipt.net/embed/cabd8d18a13bf824c2596e939291b738/
/raw/cabd8d18a13bf824c2596e939291b738/
cabd8d18a13bf824c2596e939291b738
bash
Bash
1
2019-06-23T13:12:53
True
False
False
/api/public/snipt/17581/
find-and-remove-files-older-than-a-certain-date
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>find /path/to/dir -type f -mtime +30 -exec rm <span class="o">{}</span> <span class="se">\;</span> </span></pre></div> </td></tr></table>
bash, filesystem, storage