我正在写一个加密文件夹的数据或文件如何覆盖在一个文件中的数据使用bash
#!/bin/bash
file_name=$1
tmp_file=/tmp/tmpfile.tar
# tar compress file
tar -cf $tmp_file $file_name;
# encrypt file
gpg -c $tmp_file
# remove temp file
rm -rf $tmp_file $file_name
# mv encrypted file to orignal place
mv ${tmp_file}.gpg $file_name
bash脚本,但数据仍然可以恢复使用photorec或类似方法...
有没有办法确保在bash中原始文件的绝对删除?
SRM的伎俩,谢谢 – Stefan 2010-04-15 10:54:59