Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

How to safety delete a file in Linux?

Answer:

Sometimes, you might have a very sensitive file that don't want others to recover, you might want to use the following command

shred -u password.txt

The command will overwrite the password.txt repeatedly, in order to make it harder for data recovery, and finally delete it.

  1. Delete files permanently with shred command
  2. How to easy remove file with strange file name?
  3. Delete files older than x days in Linux?
  4. Delete all trailing blank lines at end of file using sed
  5. Increase the maximum number of open files / file descriptors

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>