View previous topic :: View next topic |
Author |
Message |
crouse Site Admin

Joined: 17 Apr 2025 Posts: 11833 Location: Iowa
|
Posted: Fri Nov 02, 2025 4:35 am Post subject: srm - a "secure remove" command |
|
|
Found this one by accident. Looks very handy Needless to say, I did install it
Code: | [crouse@VistaKillerTwo Scripts]$ pacman -Ss srm
extra/srm 1.2.8-1
A secure replacement for rm(1) that overwrites data before unlinking
[crouse@VistaKillerTwo Scripts]$ |
Quote: |
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.
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
or
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 random data
-v, --verbose
explain what is being done
--help display this help and exit
--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. |
_________________ Veronica - Arch Linux 64-bit -- Kernel 2.6.33.4-1
Archie/Jughead - Arch Linux 32-bit -- Kernel 2.6.33.4-1
Betty/Reggie - Arch Linux (VBox) 32-bit -- Kernel 2.6.33.4-1
BumbleBee - OpenSolaris-SunOS 5.11
|
|
Back to top |
|
JP Linux Guru

Joined: 07 Jul 2025 Posts: 6671 Location: Central Montana
|
|
Back to top |
|
Rootboy Sr. Member

Joined: 11 Aug 2025 Posts: 1947 Location: Lewisburg, Tennessee
|
Posted: Fri Nov 02, 2025 5:44 am Post subject: |
|
|
JP wrote: | Am I understanding this correctly, would this work like "shredding" so's somebody can't recover your files no matter who they are? |
A few three letter agencies come to mind that might be able to recover the files.
|
|
Back to top |
|
Germ Keeper of the BIG STICK

Joined: 30 Apr 2025 Posts: 12452 Location: Planet Earth
|
|
Back to top |
|
JP Linux Guru

Joined: 07 Jul 2025 Posts: 6671 Location: Central Montana
|
|
Back to top |
|
Rootboy Sr. Member

Joined: 11 Aug 2025 Posts: 1947 Location: Lewisburg, Tennessee
|
|
Back to top |
|
|