Difference between revisions of "Shred"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>Security_tools|Security tools</yambe:breadcrumb> =shred= ==Writing zeros to a file== If there is a need to write all zeros to a file then one can use <pre> ...")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb>Security_tools|Security tools</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Security tools]] > [[Shred|shred]]
=shred=


==Writing zeros to a file==
==Writing zeros to a file==
Line 8: Line 7:
</pre>   
</pre>   
Note that '<tt>dd if=/dev/zero of=&lt;file&gt;</tt>' wont work as it wont end.  So dd would have to be limited using bs, count, etc mechanisms.
Note that '<tt>dd if=/dev/zero of=&lt;file&gt;</tt>' wont work as it wont end.  So dd would have to be limited using bs, count, etc mechanisms.
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Security tools]] > [[Shred|shred]]

Latest revision as of 16:02, 24 March 2022

Home > CentOS > CentOS 6.x > Security tools > shred

Writing zeros to a file

If there is a need to write all zeros to a file then one can use

 
   shred -n 1 -z <file-name>

Note that 'dd if=/dev/zero of=<file>' wont work as it wont end. So dd would have to be limited using bs, count, etc mechanisms.




Home > CentOS > CentOS 6.x > Security tools > shred