<p>Shred is one of four <a href="http://www.lifewire.com/top-linux-distributions-of-all-time-4084559" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="1">Linux</a> commands that sound similar but are not the same: shred, wipe, delete, and erase.</p><p>You use <strong>shred</strong> when you want to permanently erase a single piece of data. The information, which you identify, is overwritten by 1s and 0s several times, which permanently erases the data, unlike the other similar commands that erase data that is retrievable under certain circumstances. </p><p>With the shred command, you can shred a small collection of files whenever you want. It is an easy way to erase data you don&#39;t want anyone to be able to unerase. Ever.</p><h3>Shred Syntax</h3><pre> <code>shred [OPTIONS] FILE [...]</code></pre><h3>Options When Using the Shred Command</h3><p>Use the Shred command to overwrite the specified files repeatedly and make it difficult or impossible for even expensive hardware or software to recover the data. Options include:</p><ul><li><strong>-f</strong> changes permissions to allow writing if needed</li><li><strong>-n</strong><strong> </strong>(iterations&#61;N) overwrites N times instead of the default (3)</li><li><strong>-s</strong> (size&#61;N) specifies the number of bytes<strong> </strong>to<strong> </strong>shred</li><li><strong>-u </strong>truncates and removes files after overwriting</li><li><strong>-v </strong>shows verbose information about the progress</li><li><strong>-x </strong>does not round file sizes up to the next full block</li><li><strong>-z </strong>adds a final overwrite with zeros to hide shredding</li><li><strong>-u </strong>removes the file after overwriting</li></ul><h3>Examples of the Shred Command</h3><p>To enter the names of the exact files you want to shred, use the following format:</p><pre> <code>shred fileABC.text file2.doc file3.jpg</code></pre><p>If you add the option -u, the listed files are shredded and also deleted to free up space.</p><pre> <code>shred -u fileABC.text file2.doc file3.jpg</code></pre><h3>Places Shred Doesn&#39;t Work</h3><p>Shred relies on an important assumption—that the <a href="https://www.lifewire.com/what-is-a-file-system-2625880" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="2">file system</a> overwrites data in place. This is traditional, but some file systems do not satisfy this assumption. The following are examples of file systems on which shred is not effective:</p><ul><li>Log-structured or journaled file systems, such as those supplied with AIX and Solaris (and JFS, ReiserFS, XFS, and Ext3)</li><li>File systems that write redundant data and carry on even if some writes fail, such as <a href="https://www.lifewire.com/what-is-raid-4095329" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="3">RAID</a>-based file systems</li><li>File systems that make snapshots, such as Network Appliance&#39;s NFS server</li><li>File systems that cache in temporary locations, such as NFS version 3 clients</li><li>Compressed file systems</li></ul><p>In addition, file system backups and remote mirrors may contain copies of the file that cannot be removed, and that could allow a shredded file to be recovered later.</p>