Unzip multiple files into one folder?

Discussion in 'Mac Basics and Help' started by DJTaurus, Sep 26, 2013.

  1. DJTaurus macrumors 65816

    DJTaurus

    Joined:
    Jan 31, 2012
    #1
    Is there a program to unzip multiple files into one file/folder? Unarchiver unzipes each file in different folder.
     
  2. MeUnix macrumors 6502

    Joined:
    Aug 21, 2013
    Location:
    San Francisco
    #2
    With OSX you can run a simple terminal command and extracted all the files into the same directory without the need of a third party application.


    Example: you have these files

    HypotheticalFILE1.zip
    HypotheticalFILE2.zip
    HypotheticalFILE3.zip
    HypotheticalFILE4.zip
    HypotheticalFILE5.zip

    Rather than double-clicking each *.zip file (which most of the time creates folders for each file extracted) you can run a command from the Terminal which will extract all the files in to the same directory.

    Open Terminal and navigate to the directory where all the zip files are stored.

    Once your in that directory you just need to type this:

    unzip \*.zip [Return]
    You will then be presented (if there are any duplicate files being uncompressed with the following:

    replace duplicatefile.mp4? [y]es, [n]o, [A]ll, [N]one, [r]ename:
    Just type either ‘y‘, ‘n‘, ‘A‘, ‘N‘, or ‘r‘ and hit [Return]
     
  3. tzus macrumors member

    Joined:
    Aug 18, 2008
    Location:
    UK
    #3
    Thanks for the info; very useful but how do I navigate to the required directory in terminal?
     
  4. MeUnix macrumors 6502

    Joined:
    Aug 21, 2013
    Location:
    San Francisco
    #4
    Here is a list of common commands:

    ls
    list files and directories
    cd
    change directory
    mkdir
    create a new directory
    cp
    copy files or directories
    mv
    move (rename) files or directories
    rm
    remove files or directories

    You can see the rest of how to navigate through the terminal with this guide.

    Hope this helps,
    - Kyle
     
  5. DJTaurus thread starter macrumors 65816

    DJTaurus

    Joined:
    Jan 31, 2012
    #5
    Sorry for asking again.

    I typed ls. As you can see below there is a folder "Once Upon" in the Desktop.... what do i exactly type on terminal in order to get in?

    Screen Shot 2013-09-28 at 1.05.43 PM.png
     
  6. tzus macrumors member

    Joined:
    Aug 18, 2008
    Location:
    UK
  7. MeUnix macrumors 6502

    Joined:
    Aug 21, 2013
    Location:
    San Francisco
    #7
    This article will explain to you how to get in and edit, etc.
     
  8. BlackDuke07 macrumors newbie

    Joined:
    Apr 3, 2013
    #8
    Anyone reading this many years after the post... in terminal type cd[space] then drag the folder onto terminal followed by return to navigate to the folder.
     
  9. BlackDuke07, Aug 15, 2016
    Last edited: Aug 15, 2016

    BlackDuke07 macrumors newbie

    Joined:
    Apr 3, 2013
    #9
    Nice guide, I wish there was an app to automate batch unzip/zip.
     
  10. anomuse macrumors newbie

    anomuse

    Joined:
    Jan 20, 2017
    #10
    I registered with this website just to say thank you for this very useful post. It works great with the terminal command you gave. Thank you!
     

Share This Page