June 28, 2007

Unzip 3.7 GB zip file on linux server.?

I have been able to copy last entry/file to file.txt with SSH command :-

  1. gunzip -c filename.zip >file.txt
  2. Abundant space free on server.
  3. Why are you directing the output into a file?

    To extract the files just do gunzip filename.zip.

    That assumes the file is a gzip file. If the file has a .zip extension then it might have been compress using another program. in that case try:

    unzip filename.zip

  4. Else, how can I extract all files?
  5. Wrong decompressor… you should use the "unzip" program:

    unzip filename.zip

    now if you want to only decompress the last file, you could do something like:

    unzip -l blah.zip | tail -3 | head -1 | perl -e 'while(<>){@_ = split /\s+/, $_;print $_[4];}' | xargs unzip blah.zip

  6. How can I remove last entry/file and keep repeating?
  7. I spent some time on internet but failed to find what Distro (suggested by someone on Yahoo) means. Also I do not know how to output the file to desktop.

Tags: ,

Tell a Friend Today!

del.icio.us Digg Furl Reddit Ask BlinkList blogmarks Blogg-Buzz Google Ma.gnolia Netscape ppnow Rojo Shadows Simpy Socializer Spurl StumbleUpon Tailrank Technorati Windows Live Wists Yahoo! Help

Permalink • Print

Track this entry

RSS BlogPulse

RSS Technorati Cosmos

Related Searches

, , , ,