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 :-
- gunzip -c filename.zip >file.txt
- Abundant space free on server.
- 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
- Else, how can I extract all files?
- 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
- How can I remove last entry/file and keep repeating?
- 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: yellow dog linux, linux operating system free download























