Home » Create password protected zip file via command line
Create password protected zip file via command line
In this post, we will see how to password protected a zip file using command line so that even if the anyone outside gets access to that zip file, can not unzip it without providing the password.
zip -ejr <new_zip_file_name.zip> <directory_name_to_zip>
[new_zip_file_name.zip: name for the zip file to create.
directory_name_to_zip: The source directory to zip]
Example: zip -ejr folder.zip zip_folder
e (encryption), ask for a password to create password protected zip file. j (junk the path), will not include the folder hierarchy inside zip file because of zip command by default archives the complete folder hierarchy leading to your target folder. r (recursive), will force the zip command to include the entire contents of the folder in the archive.
What is PHP Code Sniffer: A package for syntax checking. It can check code against defined rules, covering anything from white space through document comments to variable naming conventions and beyond. Available from PEAR. Installation and use (Command line interface): Use below command from command line to install it. pear…
What is Gulp: Gulp.js is a JavaScript task runner that helps to perform repetitive tasks like: CSS Preprocessing. JavaScript linting. Unit Testing. Image optimization. Minification of JS and CSS files. Concatenating files. Reloading the browser etc. Installing Gulp: It's a command line utility. It uses Node.js and installed via npm so…
What is Supervisor It is a Process Control System which allows you to monitor and control a number of processes. What it can do It can be configured to automatically restart processes on a crash. (operating system signals Supervisor immediately when a process terminates) It can start processes on its…