Rechercher une page de manuel
srm
Langue: en
Version: 372147 (fedora - 01/12/10)
Section: 1 (Commandes utilisateur)
NAME
srm - securely remove files or directoriesSYNOPSIS
srm [OPTION]... FILE...DESCRIPTION
srm removes each specified file by overwriting, renaming, and truncating it before unlinking. This prevents other people from undeleting or recovering any information about the file from the command line. By default srm uses 35 passes to overwrite the file's contents. If this seems overkill you can use use the --dod, --doe, --openbsd, --simple option which use less passes. If you specify more than one option (of those listed above) they are executed in the order shown above. srm, like every program that uses the getopt function to parse its arguments, lets you use the -- option to indicate that all following arguments are non-options. To remove a file called `-f' in the current directory, you could type either
- rm -- -f
- rm ./-f
OPTIONS
Remove (unlink) the FILE(s).
- -d, --directory
- ignored (for compatability with rm(1))
- -f, --force
- ignore nonexistent files, never prompt
- -i, --interactive
- prompt before any removal
- -r, -R, --recursive
- remove the contents of directories recursively
- -s, --simple
- only overwrite the file with a single pass of zero bytes
- -P, --openbsd
- OpenBSD compatible rm. Files are overwritten three times, first with the byte pattern 0xff, then 0x00, and then 0xff again, before they are deleted. Files with multiple links will be unlinked but not overwritten.
- -D, --dod
- US Dod compliant 7-pass overwrite.
- -E, --doe
- US DoE compliant 3-pass overwrite. Twice with a random pattern, finally with the bytes "DoE". See http://cio.energy.gov/CS-11_Clearing_and_Media_Sanitization_Guidance.pdf for details.
- -v, --verbose
- explain what is being done
- -h, --help
- display this help and exit
- -V, --version
- output version information and exit
NOTES
srm can not remove write protected files owned by another user, regardless of the permissions on the directory containing the file.
Development and discussion of srm is carried out at http://sourceforge.net/project/?group_id=3297 which is also accessible via http://srm.sourceforge.net.
SEE ALSO
rm(1)Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre