Pages

2015年8月12日 星期三


linux tar壓縮檔, 用openssl加解密

linux tar壓縮檔, 用openssl加解密

加密
tar -zcvf - A.txt B.txt|openssl des3 -salt -k 123 | dd of=pma.des3

解密
dd if=pma.des3 |openssl des3 -d -k 123|tar zxf -

A.txt B.txt =>為被壓縮的檔案
123 =>為密碼
pma.des3 =>為加密後的檔案

2015年6月11日 星期四

2015年5月13日 星期三


查看 Linux 開機記錄

轉自
http://jamyy.us.to/blog/2014/08/6623.html

查看最近一次開機時間
$ who -b
system boot  2014-06-23 20:58

$ last -1 reboot
reboot   system boot  2.6.32-431.17.1. Mon Jun 23 20:58 - 21:50 (56+00:51)

2015年5月12日 星期二


Google SMTP 安全性較低的應用程式

Google SMTP 安全性較低的應用程式

要調整「安全性較低的應用程式存取權限
(https://www.google.com/settings/security/lesssecureapps)」
為「啟用」(預設是「停用」)。
設定「啟用」後,再執行一次程式就可以正常送出了哦! (但「啟用」後,對帳號不安全)