[terminal] archive file to zip format with password on terminal

We can archive file to zip format on terminal without any other app.

1. archive only a file

zip example.zip filename

2. archive directory

zip -r example.zip directoryname

3. archive directory with password

zip -P yourpassword -r example.zip directoryname

Comments are closed.