What's the ideal command or software to erase files in Linux so they are unrecoverable?

A kernel command or any other command or software that would delete the files and make them unrecoverable

2 Answers 2


There is a shred utility that asks filesystem to write file on the same blocks. There is also srm that modifies file many times and creates mess on its place.

Beware of the following things:


press Ctrl+Alt+T to get a new GUI terminal window, then write:

shred -uvz -n3 c:/file.txt or c:/ for the whole folder shredded
  • 1
    I'm confused by your reference to c:/file.txt or c:/ -- we're on a Unix & Linux site.
    – Jeff Schaller
    Jul 5, 2017 at 17:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .