118
Chapter 11
On its own,
shred
will delete the file and overwrite it several times—
by default,
shred
overwrites four times. Generally, the more times the file is
overwritten, the harder it is to recover, but keep in mind that each overwrite
takes time, so for very large files, shredding may become timeconsuming.
Two useful options to include are the
-f
option, which changes the per
missions on the files to allow overwriting if a permission change is neces
sary, and the
–n
option, which lets you choose how many times to overwrite
the files. As an example, we’ll shred the log files in
/var/log/auth.log 10 times
using the following command:
kali >