Created
December 11, 2013 04:55
-
-
Save ma6174/7905261 to your computer and use it in GitHub Desktop.
安全“删除”文件
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# rm有风险,先将文件移动到/tmp/目录,在关机之前文件文件还是存在的,重启后才删除 | |
mv -f $* /tmp/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment