While trying to download the unzipped files as per instructions of "Braking out", I encountered a problem. The first time I executed the following instructions in the terminal, it did work and I got the desired files:-

cd ~/Dropbox wget http://cdn.cs50.net/2014/fall/lectures/4/m/src4m.zip unzip src4m.zip rm -f src4m.zip cd src4m

I made a 2nd attempt to try the same. This time, after executing the first two lines of the above instructions, I got 'src4m.zip' saved [8058/8058]. (~/Dropbox): When I execute unzip src4m.zip, I get

Archive: src4m.zip replace src4m/slider.c? {y, n, A, r]

I tried by putting A. It inflated all files and displays (~/Dropbox): If I put consecutively the next 2 instructions. I get

-bash: cd: src4m.zip: No such file or directory (~/Dropbox):

If I put ls at this condition, I cannot see the desired unzipped files of src4m.zip I could not understand the reasons. What should be the proper way to execute the instructions in order that I can get back the unzipped files? Thanks in advance.

  • Are you absolutely sure that your second command on your 2nd attempt was 'unzip'? Because, 'src4m.zip saved' sounds like the output from 'zip', not 'unzip'. And,, if your postings are accurate, it also sounds like the line 'Archive: src4m.zip....' is asking you if you want to replace files inside the archive. If you ran zip by accident, you corrupted the original zip file. I suggest removing the generated subdirectory and the zip file and then download a new copy and start over.
    – Cliff B
    Apr 13, 2015 at 19:10
  • Thank you for giving me the idea of what each of those lines of instructions means. In the meantime, I found src4m in my (~/Dropbox) and from there I am in a position to open the desired files. Apr 14, 2015 at 12:44
  • Thank you for giving me the understanding. In the meantime, I discovered src4m folder in my (~/Dropbox). Kindly confirm the following : My first two commands saved for me the zipped src4m folder. Next unzip and A commands replaced all the files in old src4m folder (what does inflating mean?). Then, rm -f src4m.zip removed the zipped folder and thus cd src4m.zip gave me the warning. Thanks again. Apr 14, 2015 at 14:10
  • Yes, the two commands are right. The first command will save a FILE (not a folder) called src4m.zip in the current directory. The second command, "unzip src4m.zip rm -f src4m.zip" will unzip or unpack the contents of the zip file into the src4m directory. If the directory doesn't exist, it will create it (and any subdirectories it needs.) If the directory already exists, It will replace any existing files in the directory that have the same name as files in the zip file. "Inflating" is the unzipping of the files and directories contained in the zip file. They are inflated to normal size.
    – Cliff B
    Apr 14, 2015 at 18:55
  • Finally, if you issued the command "cd src4m.zip", you would get a warning. cd is the command to change directory, but src4m.ZIP is a file, while src4m (without the .zip) is the directory.
    – Cliff B
    Apr 14, 2015 at 18:56

1 Answer 1


Answered in comments. If you're satisfied, please mark as answered. Let's keep up the housekeeping on the forum. thanks.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .