Zip file with password

很少用zip來壓縮檔案,不過,他支援密碼輸入的功能還不賴唷∼

# zip -P test1234 test.zip ./test/*
  adding: test/node_modules/ (stored 0%)
  adding: test/test-023.js (deflated 44%)
  adding: test/test-123.js (deflated 46%)
  adding: test/test-223.js (deflated 29%)
  adding: test/test-323.js (deflated 45%)
  adding: test/test-423.js (deflated 51%)
  adding: test/test.sh (deflated 12%)

# unzip test.zip 
Archive:  test.zip
   creating: test/node_modules/
[test.zip] test/test-023.js password: [******your password******]
  inflating: test/test-123.js  
  inflating: test/test-223.js      
  inflating: test/test-323.js   
  inflating: test/test-423.js    
  inflating: test/test.sh  

這個網誌中的熱門文章

Bash判斷參數是否存在

使用 minikube 輕鬆上手 kubernetes