


In order to check if your zip file was created, you can run the “ls” command and look for your archive file. In order to achieve that, you would run the following command $ zip -r temp.zip Documents įor example, let’s say that you want to archive a folder named “Documents” in a zip file named “temp.zip”.

You can also specify multiple folders if you want to have multiple directories compressed in your zip file. The easiest way to zip a folder on Linux is to use the “zip” command with the “-r” option and specify the file of your archive as well as the folders to be added to your zip file.
