 To prevent this, shred overwrites the contents of a file multiple times, using patterns chosen to maximize destruction of the residual data.shred can be invoked either on ordinary files or on devices (such as hard disk partitions), which are represented as files in Unix.By default, the command overwrites the file three times with multiple patterns, but the number is user configurable.