I know this has already been solved. But as an addendum:
If you use a lot of different compressed formats(.7z, .zip, .tar.gz, .rar, .ace) and you want to be able to extract them on the command line, but without having to remember all of the different command line switches and options for each format; there is a nifty little python script called dtrx (Do The Right Extraction).
Extracting archives is then just a case of: dtrx archivename.tar.gz or .7z, or .zip or whatever!
dtrx is available from the Ubuntu repos: sudo apt-get install dtrx
Note: in order for dtrx to work with different archive types, you'll need to ensure that you have the appropriate programs installed for those file-types. So it will not extract .7z files if you do not have 7zip installed. As long as you have whatever programs you need installed, dtrx will deal with extracting the archives appropriately!
You should just be able to right click the zip file and choose extract, unless it is in an odd format.
True - That would work on the desktop, or in a file-manager like Nautilus or Dolphin.
But on the command line, I heartily recommend dtrx. Especially if you use the command line often and you have a lot of compressed archives in several different file-formats.
It saves you from having to remember all of the command-line switches for all of the different decompression programs. It also saves you from having to trawl the man-pages for the appropriate switches when you forget them. Simply leave it to dtrx to handle all of that for you!
^^Very true. I believe anyone using linux should be familiar with the command line... but why use it when you can use the deskop.
The OP has mentioned ssh'ing into a virtual machine and doing these changes... OK that might be a reason to use the command line but don't forget you can install something like tightVNC server and access it via a gui shell.