Linux.com: CLI Magic: Securely Deleting Files with shred | Linux Today

Linux.com: CLI Magic: Securely Deleting Files with shred

Written By
Web Webster
Web Webster
Mar 7, 2006

“I used to think a simple format of a hard drive was enough to
make data recovery impossible, but I was wrong. To ensure that
details of your secret love affair, bank account passwords, and
daily porn site visits cannot be recovered, use shred.

“Deleting a file with the rm command merely adds a file’s data
blocks back to the system’s free list. A file can be restored
easily if its ‘freed’ blocks have not been used again. shred
repeatedly overwrites a file’s space on the hard disk with random
data, so even if a data recovery tool finds your file, it will be
unreadable. By default, shred does not delete a file, but you can
use the -u or –remove switch to delete it…”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.