← 返回命令列表

Linux command

wipe 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Securely wipe a file

wipe [file]

Wipe a file with force

wipe -f [file]

Recursively wipe a directory

wipe -r [directory]

Quick wipe

wipe -q [file]

Quick wipe with custom passes

wipe -Q [8] [file]

Wipe without removing the file

wipe -k [file]

Verbose output

wipe -v [file]

说明

wipe securely deletes files by overwriting their contents with special patterns to prevent data recovery. By default, it performs 34 write passes including 8 random patterns, based on research by Peter Gutmann on secure data erasure. The command overwrites the file, renames it multiple times, truncates it, and finally unlinks it. This multi-step process defeats various data recovery techniques used on magnetic storage. For faster operation, use -q for 4 passes or -Q to specify a custom number between 4 and 34.

参数

-f
Force; disable confirmation prompts
-r
Recursively wipe directories and contents
-c
Request confirmation for each file (default for regular files)
-s
Silent mode; suppress most output
-v
Verbose mode; show progress
-q
Quick wipe; use 4 passes instead of 34
-Q _passes_
Quick wipe with specified number of passes
-a
Abort on errors instead of continuing
-k
Keep files after wiping (don't unlink)
-Z
Single-pass zero overwrite (fast but less secure)
-l _LENGTH_
Set file size limit for wiping
-e
Use exact file size (do not round up to wipe slack space)

FAQ

What is the wipe command used for?

wipe securely deletes files by overwriting their contents with special patterns to prevent data recovery. By default, it performs 34 write passes including 8 random patterns, based on research by Peter Gutmann on secure data erasure. The command overwrites the file, renames it multiple times, truncates it, and finally unlinks it. This multi-step process defeats various data recovery techniques used on magnetic storage. For faster operation, use -q for 4 passes or -Q to specify a custom number between 4 and 34.

How do I run a basic wipe example?

Run `wipe [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f do in wipe?

Force; disable confirmation prompts