Help - problem unzipping files on Terminal

Hi,
I have been unzipping files (zip and rar) using Terminal for quite sometimes now. For unknown reasons, it's given me some problems unzipping today.
When I typed cd. /desktop, as I did in the past, it suddenly showed an error:
-bash: -bash:: command not found
I typed "/bin/echo $PATH", as I saw other previous posts have suggested. The result:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
I am not sure what that means, i.e. is it ok? or is it not? and how do I fix the problem if not ok?
I am completely IT illiterate, especially when it comes to any computer language. So please, a simple and straight forward answer, or preferrably a step-by-step guide, will be truly appreciated.
Many thanks for your kind assistance in advance.

MrHoffman, thanks ever so much for the helpful answer.
a "cd ~/Desktop" instead of "a dot and a space" did allow me to unzip my files finally!
Just wonder, by doing what I have just done, i.e. a dot and a space and then the target directory, had I already committed the sins of damaging the "Path" (something I learned from reading other similar posts in the forum)... Basically, I just want to know if i have damaged the file contents... and if so, how bad is the damage? (so far, my Mac works fine....)
Digress, I would have loved to stay away from using Terminal as far away as I could, since I am dreading of the thought of me ended up doing something damaging to the lovely Mac. But unfortuantely, there isn't any idiot-friendly tool available for unzipping any password-protected zip files.... Would appreciate if you could offer any alternative solution to this, i.e. other than using Terminal! (NB. I have also looked into using EZ 7z and X7zX for Mac before, both of which i just gave up in the end!)
Anyhow, thanks! : )

Similar Messages

  • Problems unzipping files downloaded from Firefox using Windows built-in extractor tool

    Hi,
    I am running Firefox v26 on a Windows 7 (64-bit) PC. I work for a library that is able to reproduce digital audio books that we can download from the Library of Congress's National Library Service (NLS) for the Blind and Physically Handicapped. I use Firefox to download a lot of zipped audio books for my job. The file formats found in one book's zipped folder often include the following file types: .3gp (they're like a more compressed MP3 audio file), .mp3, .ncx, .opf, .pncx, .ppf, .smil, .md5, .dtd, .ent, and .ao.
    If I use Windows' built-in extraction tool to unzip an audio book I have downloaded via Firefox the extraction process ends prematurely and acts as if it was successful, but in reality some files are were never extracted. For example, I downloaded a zipped audio book that contained 21 files and weighed in at 87.6MB. The built-in Windows extraction tool only unzipped 2 files weighing in at 30.3MB.
    I have downloaded this same zipped audio book using Google's Chrome v31 and IE 11. Both downloads unzipped successfully using Windows' extractor. To make things even more bizarre, I *was* able to successfully unzip my audio book that I downloaded using Firefox using a 3rd party extraction tool called Extract Now. Because I tend to use this 3rd party program to extract my audio files I don't know at which version of Firefox this problem started. All I know if that this hasn't always been the case.
    Please help.
    Thanks,
    -Dan M.

    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test to see if that helps with extracting files.

  • Problems unzipping files

    Hello there,
    I tried to create two small programs: Zip and UnZip, using the java.util.zip package. The Zip file works perfectly and WinAce can read the files zipped. But the UnZip program doesn't seem to work: it unzips
    the files almost correctly. I unzipped a text file and it's readable, but except for the normal characters that appeared in the original text, some other not-displayable characters appear at certain points (quite many since the unzipped files are a few kilob bigger that the original not-zipped file). I really don't understand what the problem is. Well, actually, I didn't read any tutorial about using java.util.zip, I just read the API documentation and I sorted out a way of zipping and unzipping. Please, if you can, tell me what is the problem with the program:
    public class UnZip
         public static void main(String[] arg)
              try
                   if (arg.length < 1)
                        System.out.println("Usage: java UnZip <zip file> [to dir]");
                        System.exit(0);
                   String dir = "";
                   if (arg.length > 1)
                        dir = arg[1] + System.getProperty("file.separator");
                        File f = new File(arg[1]);
                        if (!f.exists()) f.mkdirs();
                   System.out.println("Decompressing files from file " + arg[0]);
                   ZipFile read = null;
                   try
                        read = new ZipFile(arg[0]);
                   catch (ZipException ex)
                        System.err.println("Zip error when reading file " + arg[0]);
                        System.exit(1);
                   catch (IOException ex)
                        System.err.println("I/O Exception when reading file " + arg[0]);
                        System.exit(1);
                   Enumeration en = read.entries();
                   while (en.hasMoreElements())
                        ZipEntry entry = (ZipEntry) en.nextElement();
                        System.out.println("\tDecompressing file " + entry.getName());
                        FileOutputStream out;
                        try
                             out = new FileOutputStream(dir + entry.getName());
                        catch (FileNotFoundException ex)
                             System.err.println("\tCannot write down to file " + dir + entry.getName());
                             continue;
                        InputStream re = read.getInputStream(entry);
                        int av = 0;
                        while ((av = re.available()) != 0)
                             byte[] b = new byte[av < 64 ? av : 64];
                             re.read(b);
                             out.write(b);
                        out.close();
                        System.out.println("\tDone decompressing file " + entry.getName());
                   read.close();
                   System.out.println("Done decompressing files");
              catch (Exception e)
                   new File(arg[1]).delete();
                   e.printStackTrace(System.err);
    }

    It is the following code which has a swapped conditional expression,
    and also I would loop differently.
              int av = 0;
              while ((av = re.available()) != 0)
                   byte[] b = new byte[av < 64 ? av : 64];
                   re.read(b);
                   out.write(b);
              }Move the byte buffer outside, and better think in kilobytes.
    Read is waiting and forcing an actual read, so it seems
    safer than an available.
    byte[] buffer = new byte[1024];
    for (;;) {
        int nread = re.read(buffer);
        if (nread < 0)
            break;
        out.write(buffer, 0, nread);

  • Problems Unzipping file on my desktop

    When I try to unzip a file, I get a message: "Unable to unarchive "name of file" into "Desktop". (Error 1 - Operation not permitted.)". The file is 9.3 Gb, but I have opened files exactly like this in the recent past. Any suggestions?
    I am using mac os 10.6.8.

    How are the permissions of your file? How is the extension of the file? Is it .zip ?
    Could you post back the result of (copy and paste in your Terminal of these comands followed by <enter>):
    cd ~/Desktop
    ls -l
    Is this command in the Terminal working:
    unzip yourfile.zip
    Can you move the file to an other folder of your home directory?
    Best greetings
    marek

  • Problem unzip file (Solved)

    When I go to uncompress a .rar file with nemo, nautilus I get this error.
    Error: Parsing filters is unsupported
    It seems to be a problem with libarchive , I'm not sure , but I can not find a solution.
    Any idea
    Thanks
    Last edited by kabbalah (2015-04-24 01:51:05)

    Is it another symptom of this issue https://bbs.archlinux.org/viewtopic.php?id=196198
    Does the PKGBUILD with patch from that thread fix your issue?

  • Help with add file name problem with Photoshop CS4

    Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
    Script follows:
    // this script is another variation of the script addTimeStamp.js that is installed with PS7
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.INCHES;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "Lower© ";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = " ";
    // Set font size in Points
    myTextRef.size = 10;
    //Set font - use GetFontName.jsx to get exact name
    myTextRef.font = "Arial";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 0;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 10, 99);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    you might want to try the scripting forum howard:
    http://www.adobeforums.com/webx?13@@.ef7f2cb

  • Premiere Pro CS5: please help problem with importing a file error output "there was an error decompressing audio or video"

    please help problem with importing a file error output "there was an error decompressing audio or video"

    this is related to what adobe program/version?

  • Problem with unzipping file

    I am trying to unzip a file using java.util.zip. It is throwing a ZipException in the first line where I instantiate ZipFile object.
    ZipFile oFile = new ZipFile("/myzip.zip");java.util.jar is not working either. It fails right here:
    JarFile oFile = new JarFile("/myzip.zip");Here is the exception thrown in the above cases:
    java.util.zip.ZipException: error in opening zip file
            at java.util.zip.ZipFile.open(Native Method)
            at java.util.zip.ZipFile.<init>(Unknown Source)
            at java.util.jar.JarFile.<init>(Unknown Source)
            at java.util.jar.JarFile.<init>(Unknown Source)
            at ReadZipFile.main(ReadZipFile.java:21)
    An interesting observation:
    I am able to extract the contents of the zip from the command-line using jar utility.
    jar xvf myzip.zipI am stumped! I think jar utility internally uses the same classes for unzipping files. How come it is working with jar utility whereas it is not working from Java program? Also, the myzip.zip appears to be a valid archive - I am able to open it with winzip.
    Any pointers will be appreciated.
    Thanks in advance,
    Ganesh

    I think the above reply is correct but didn't explain why you would be getting a file not found. Unless you have your zip file at the root of your harddrive the slash in the filename is improper. Without the slash your code will assume your current working directory and look for the file there.
    By putting that forward slash in there you are telling the code to look at the root of the filestructure and NOT at the current working directory.

  • Unzip file using PayloadZipBean in Sender FILE adapter

    I am trying to unzip a flat file in Sender FILE adapter using PayloadZipBean.
    I am getting mapping error. The problem is File adapter is reading data without unzipping. I am getting weird characters/data, so mapping error.
    I searched all the blogs/ forum threads and help.sap.com, everywhere the focus is on zipping, not unzipping.
    the file I have is with .gz extension, but I tried with .zip extension also.
    Please help in resolving this issue.
    Edited by: Gopal Janagama on May 2, 2008 11:42 PM

    Gopal,
    GZIP and ZIP format are slightly different, as stated here :
    "GZIP compresses only one file and does not have a header. ZIP contains header information about what files are contained in the file."
    So I'm not sure the PayloadZipBean supports GZIP format ... Try to ungzip and then zip its content and see if the bean works for it
    Rgds
    Chris

  • Unzipping Files in the wrong folder

    Hi
    I am trying to unzip files. It works fine except that it unzips the files at the root. So i have tried specifying the path for making the directory (in which the unzipped files are stored). But that doesnt seem to work. Now i am unable to find the unzipped files. CAN ANYONE HELP PLEASE
    public static void unzipFile(String zFile)
            Enumeration entries;
            ZipFile zipFile;
           try {
                zipFile = new ZipFile(zFile);
                File file = new File(zipFile.getName());
                String fname = file.getName();
               String substr1 = fname.substring(0, fname.indexOf("."));
                String filepath = "/data/psawant/temp";
                File dir = new File(filepath, substr1);
                try {
                        dir.mkdir();
                catch (Exception fe)
                      System.err.println("Unhandled exception:");
                        fe.printStackTrace();
                        return;
                entries = zipFile.entries();
                while(entries.hasMoreElements()) {
                    ZipEntry entry = (ZipEntry)entries.nextElement();
                    if(entry.isDirectory())
                         // Assume directories are stored parents first then children.
                        System.err.println("Extracting directory: " + entry.getName());
                                          (new File(entry.getName())).mkdir();
                        continue;
                    } //end of if
                    System.err.println("Extracting file: " + entry.getName());
                    copyInputStream(zipFile.getInputStream(entry),
                        new BufferedOutputStream(new FileOutputStream(entry.getName())));
                 } //end of while
                zipFile.close();
                   } catch (IOException ioe)  {                 }
             } //end of unzip function
    public static final void copyInputStream(InputStream in, OutputStream out)
        throws IOException
            byte[] buffer = new byte[1024];
            int len;
            while((len = in.read(buffer)) >= 0)
            out.write(buffer, 0, len);
            in.close();
            out.close();
    Any help is apprciated
    Thanx

    Sorry I got it this time. I had overlooked the new File. I added that & it works fine but there seems to be some problem
    If the folder has another folder inside . it doesnt show that one. or rather just unzips one folder & no folders inside it. But i guess i can check for that
    Thanx for u r help
    Have a nice day

  • Problems opening files

    This question is probably basic and i should know the answer but can't figure it out. so here i go. it is a two part question or maybe 2 different questions all together:
    1: I have some files that will open in preview but when i change it it just doesn't happen. (.psd, .pdf, .jpg, .jpeg etc.) i want to change it for all programs so when i click on a .pdf it opens acrobat instead of preview. and photoshop instead of preview (.psd) somehow this doesn't work at all!!!
    2. for photoshop: i right click on the file, open with adobe photoshop it will open photoshop but not the file itself. any one have this same problem? anyone know of any fixes??? i am getting frustrated cause i then have to open the file manually with he file menu. this has also happened with some other programs as well. any help would be excellent!!!!
    thanks.
    stefan

    The Photoshop file problem means that this is missing:
    "/Library/ScriptingAdditions/Adobe Unit Types"
    Last I heard Abode was still recommending that you reinstall Photoshop, which is insane. You can download the Adobe Unit Types file here:
    http://homepage.mac.com/francines/pdfs/AdobeTypes.zip
    Unzip it. Create the ScriptingAdditions folder in the /Library folder--notice that there is no space in the name, and it is in the Library folder that you see when you open the drive, NOT the one in your home folder. Put the unzipped file in the folder.
    Francine
    Francine
    Schwieder

  • Error 2 - No such file or directory issue with unzipping file

    Hi all,
    I know ther's been a couple of threads about this already and I can promise you that I have tried it all.
    Keep getting Error 2 - No such file or directory
    I've downloaded various different software and tried unzipping, tried through Terminal, all of it.
    Still, 3 out of 16 files that I downloaded from the same source appear to be corrupted.
    Please let me know if anyone of you had this problem and how you solved it?
    Thanks a lot

    I'm at a loss as to why the files are numbered like that - unless, perhaps, they were zipped by StuffIt Deluxe and segmented? If you try opening the first, unnumbered, archive, do you get the same error message? Maybe ask if StuffIt Deluxe was used - http://www.stuffit.com/mac-deluxe.html. It's pretty expensive for what it does but I can only think, at this point, that the files were zipped and segmented using something.
    Clinton

  • Problems opening files from Windows server

    Since upgrading to Leopard, some files saved on an Windows server no longer open in the correct application. For example, documents created in Quark 6.1 or 6.5 show up as Unix Executable Files and attempt to open in the terminal. Copying the file to my desktop does not help. The files work correctly for pre-Leopard Macs. New files saved from Quark 6.5 on a machine running Leopard onto the server work fine for other Leopard Macs, but pre-Leopard Macs try to open the files with Script Editor. I can change the "Open With" preferences in a get info window for individual files, but if I select "Change All", i get an error that "not enough information is available".
    Also, Photoshop EPS files created with pre CS 1 versions of Photoshop appear as Illustrator EPS files.

    I'm not sure if anyone is working on it.
    I did copy everything to the Mac running 10.3.9 (above I mistakenly said the computer I was going to copy to was running 10.4).
    I then updated the Mac to 10.5 and all the files continued to open with the proper program even after I put them back on the server.
    I know that it's a hassle, but it worked. I guess if you don't have another Mac still running 10.3, you could put everything on your server, reformat you Mac to OS 10.3.9, then copy the server to your Mac, then upgrade to 10.5. That is, if you have a large enough hard drive. I don't claim to be a Mac expert so I can't guarantee anything in this paragraph. It just seems like that would be the only logical step given what worked for me with upgrading the computer running 10.3.9. Even after doing that, I'd then do a clean install on the computer. My Mac was having problems so that's what I did and plan on doing to the other Mac when I get the chance.
    I guess it all depends how many files you have and how annoyed you are at having to Control click all your files to open them.

  • Unzip files in Lion?

    In SL, you just clicked on the zip file and it would unzip. In Lion, that process zips the zip file. What is the correct way to unzip files in Lion?

    f0rgiven wrote:
    Where is the archive utility.app?
    It's in /System/Library/CoreServices/Archive Utility.app
    If you lauch that app, you'll have preferences available in the Menu, but I don't think it will help with your problem:

  • Problem using File sharing  in a small office network

    I have a problem using File sharing on an Imac and Macbook Pro.
    My office has a small network running Windows Small office file server 2003. I have one Windows 2000 PC connected to it and 3 Macs, an 2.4 gHz Intel iMac running Leopard 10.5.6 , a MBP running the same and a Mac Mini running 10.5.
    From the Finder Shared window of the Mac Mini, I can see all the computers on the network. It also used to be the case for the iMac, but the MBP could never see the Windows PC’s, not the server or the Win2000. This wasn’t a big problem as I was communicating between the Macs and using the shared printer on the iMac.
    On Monday Jan 19 the iMac was suddenly unavailable to the other 2 Macs. It was working normally on the Friday. The iMac can access the Mac Mini and copy files to it. The Mac Mini can see the iMac but cannot access it. Even trying to connect as, ends in a failed connection. I have tried rebooting, turning File sharing off and then on again to no avail.
    The iMac now also cannot see the Windows PC’s which it previously could.
    To get files from the MBP for printing, I now copy it to the Mac Mini and acces the folder from the iMac, a very tedious procedure. I don’t know why this happened and am scared that the Mac Mini is going to do the same thing.
    All three computers are also running VMware 2.0 with Windows XP pro, and from VMware the server is visible on all the computers.
    Any help will be much appreciated, I live in a small town in South Africa and the local computer suppliers have no knowledge of the Macs.
    I think that the problem with the iMac may have started after a software upgrade to 10.5.6 but I am not entirely sure.
    Thank you
    ajdk

    Well, you're current method sounds pretty good. But if you want to user a file server, hey go ahead.
    What you want to do when you centralize project files is to keep track of which one is the newest and becareful not to overwrite files with the same name. So you either have to set up individual spaces on the server (separate AFP/FTP folders maybe), or you'll need to run a file checkout service.
    The individual space is cheaper, but it's not much of a difference from backing up to the network drive. Since you have Gigabit connections, you might even opt to save ALL the user files on the server instead of just the project files.
    If you want to run a file checkout service, there's two approaches. You can run a service that can host any kind of file, or you can run a version control system for each kind of application (Photoshop, Word, etc.). Please notice, that as you read further and further along, the methods become more and more expensive and complicated. Once you get to this point, it will be necessary to purchase or build software in addition to the Mac OS X Server package.

Maybe you are looking for

  • Sharing my experience, water spill accident on my Retina Macbook Pro

    I would like to share my experience to the community and to fellow mac users regarding my water spill accident on my 1-week fresh Retina Macbook Pro. Before begining, i appologize for gramar or spelling mistakes since I am French and English is not m

  • Help with displaying BLOBs in OBIEE 11g

    I am trying to get OBIEE 11g to display photographs in an Analysis report. I know BLOB fields are not supported, and I have been reading posts on this board and following examples on internet sites that try to get round this problem. But, try as I mi

  • Blackberry Internet Service Failure

    I am trying to setup the Blackberry Internet Service to access my email server to obviously forward those emails to my Blackberry. Using the web service, I attempt to add my email account, but it always fails with this error: "An error occurred while

  • Bevel effect bug.

    To some you, this is going to look like a trivial matter. For those of us designing detailed multi-buttoned GUI's, it isn't. Yes, there are time consuming work-arounds. But why?...when it could be fixed by Adobe? This first pic shows the starting poi

  • Generate output values based on contexts

    Queue 1 : contextchange mat_name1 contextchange mat_name2 contextchange mat_name3 contextchange mat_name4 contextchange Queue 2: ( output from Boolean AND) contextchange true contextchange true true contextchange true true true contextchange false tr