2013-08-22 03:34:11 +02:00
|
|
|
# To shred a file (5 passes) and verbose output:
|
2013-08-11 21:37:11 +02:00
|
|
|
shred -n 5 -v file.txt
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# To shred a file (5 passes) and a final overwrite of zeroes:
|
2013-08-11 21:37:11 +02:00
|
|
|
shred -n 5 -vz file.txt
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# To do the above, and then truncate and rm the file:
|
2013-08-11 21:37:11 +02:00
|
|
|
shred -n 5 -vzu file.txt
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# To shred a partition:
|
2013-08-11 21:37:11 +02:00
|
|
|
shred -n 5 -vz /dev/sda
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# Remember that shred may not behave as expected on journaled file systems if file data is being journaled.
|