mirror of
https://github.com/jbranchaud/til
synced 2026-01-05 16:18:01 +00:00
Add Securely Remove Files as a zsh til.
This commit is contained in:
@@ -203,6 +203,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
|
|||||||
- [Repeat Yourself](zsh/repeat-yourself.md)
|
- [Repeat Yourself](zsh/repeat-yourself.md)
|
||||||
- [Saying Yes](zsh/saying-yes.md)
|
- [Saying Yes](zsh/saying-yes.md)
|
||||||
- [Search History](zsh/search-history.md)
|
- [Search History](zsh/search-history.md)
|
||||||
|
- [Securely Remove Files](zsh/securely-remove-files.md)
|
||||||
- [SSH With Port Forwarding](zsh/ssh-with-port-forwarding.md)
|
- [SSH With Port Forwarding](zsh/ssh-with-port-forwarding.md)
|
||||||
- [Switch Versions of a Brew Formula](zsh/switch-versions-of-a-brew-formula.md)
|
- [Switch Versions of a Brew Formula](zsh/switch-versions-of-a-brew-formula.md)
|
||||||
- [Watch The Difference](zsh/watch-the-difference.md)
|
- [Watch The Difference](zsh/watch-the-difference.md)
|
||||||
|
|||||||
11
zsh/securely-remove-files.md
Normal file
11
zsh/securely-remove-files.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# Securely Remove Files
|
||||||
|
|
||||||
|
If you really want to make sure you have wiped a file from your hard drive,
|
||||||
|
you are going to want to use `srm` instead of `rm`. The man page for `srm`
|
||||||
|
gives the following 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.
|
||||||
|
|
||||||
|
h/t Dillon Hafer
|
||||||
Reference in New Issue
Block a user