使用zip指令壓縮
進入需要壓縮檔案的目錄後執行
單個檔案:zip -e test.zip text.txt
檔案夾:檔案:zip -er test.zip text
不加密:zip -r test.zip text
執行指令輸入兩次密碼即可,注:保證路徑正确。
zip -er reporter.zip reporter
Enter password:
使用zip指令壓縮
進入需要壓縮檔案的目錄後執行
單個檔案:zip -e test.zip text.txt
檔案夾:檔案:zip -er test.zip text
不加密:zip -r test.zip text
執行指令輸入兩次密碼即可,注:保證路徑正确。
zip -er reporter.zip reporter
Enter password: