macOS unzip files on terminal

Hello readers,

Today, we will learn how to unzip files on terminal or iTerm2.

On this example, I got a few zip files from the internet, we will show how to unzip a library zip file.

I used a folder called example for the instance workaround.

How I done this workaround. I made these few steps on my iTerm2 second tab session.

cd Downloads
mkdir example
pwd
mv example1.zip example
mv example2.zip example
mv example3.zip example
cd example
unzip \*.zip
ls
rm -rf *.zip
ls

You need always to move the zip files into a directory to get this work.

I chose Downloads folder to be easier to manage the example.

I gave you the code inline to manage and the screenshots to become easier.

Now, as you see we can always do those commands on the terminal or iTerm2 to unzip files.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

two × three =

coder by Gleentech
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.