![]() You can even Unzip ZIP files without opening the terminal every time. If the directory does not exist then this command will create one. unzip filename.zip -d /path/of/directoryįor example, if you have a file in Downloads that you want to unzip in a folder named NewFolder inside Downloads then use the command below. So To extract files in a different folder or directory use the command below. This is not a good thing as it will dump all the contents of the zip file which might be more than 100 files. Unzip command by default extracts files in the current directory, that is the is directory where the file is present. How to Unzip a ZIP file to a different directory And then type unzip filename.zip.Īlthough to extract a ZIP file into a directory, the user needs to have write permissions of that directory. unzip filename.zipįor example, if you have a file in Downloads, first type cd Downloads in the terminal. The file will be extracted in the same directory where the ZIP file is present. In terminal type the command below to extract the data from ZIP file. You can also open that directory in the terminal by using the cd command. ![]() When you are done installing Unzip just navigate to the place where the zip file is located and open a terminal there. These commands will install Unzip utility on your system. ![]() ![]() Install Unzip in Ubuntu and Debian sudo apt install unzip Install Unzip on Arch Linux or Manjaro sudo pacman -S unzip And to install Unzip on Fedora or CentOS sudo yum install unzip ![]()
0 Comments
Leave a Reply. |