SHRED Commands Cheat Sheet

Here is a cli commands cheat sheet for SHRED command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.

What is SHRED command?

Add some data here

        # To shred a file (5 passes) and verbose output:
shred -n 5 -v 

# To shred a file (5 passes) and a final overwrite of zeroes:
shred -n 5 -vz 

# To do the above, and then truncate and rm the file:
shred -n 5 -vzu 

# To shred a partition:
shred -n 5 -vz /dev/sda

# Remember that shred may not behave as expected on journaled file systems if file data is being journaled.
    

Check out the SHRED command documentation .


You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again

Check Also

Best AI tools list