How to Zip or Unzip Files and Folders Using Command Line on Ubu

  • Are you confused on how to unzip folders and files on the Ubuntu server? Sometimes, you may have the upload or download of a file or folder to or from your server. The files or folders may be in any size. It may take a considerable amount of effort to transfer a file or folder to your server.

    unzip

    It is also much faster to transfer one massive compressed file than many smaller files. Also, FTP clients such as FileZilla don't permit unzipping or zipping files, but you are able to still do it using ssh(secure shell).

    How can I zip and unzip the files using Command line?

    Methods to dezip the .zip file

    Step 1 : Login the server through a terminal

    Step 2: Install unzip (in the event that you don't have). To install unzip, use the following command

    sudo the apt-get install and unzip

    Step 3 : Go to the directory in which .zip file which you're trying to dezip, is located.

    in which default is the filename you want to dezip.