Unzip file on unix server




















Unzipping a file works on unix server using unzip command. Can you please tell me how to make a connection through telnet using java and execute a command through telnet? Nitesh Kant. I like Do some research and let us know which one you chose and why. You showed up just in time for the waffles! And this tiny ad:. Boost this thread! See -f above for information on setting the timezone properly. This option has evolved and now behaves as both an option and a modifier.

As an option it has two purposes: when a zipfile is specified with no other options, -v lists archive files verbosely, adding to the basic -l info the compression method, compressed size, compression ratio and bit CRC. In contrast to most of the competing utilities, unzip removes the 12 additional header bytes of encrypted entries from the compressed size numbers.

The complete size of the encryped compressed data stream for zipfile entries is reported by the more verbose zipinfo 1L reports, see the separate manual. As a modifier it works in conjunction with other options e. The -aa option forces all files to be extracted as text, regardless of the supposed file type.

This is a shortcut for a. On Tandem, -a is enabled by default, see above. Doubling the option -bb forces all files to be extracted in this format. When extracting to standard output -c or -p option in effect , the default conversion of text record delimiters is disabled for binary -b resp.

This is similar to the default behavior of emacs 1 in many locations. The -C option affects file specs in both the normal file list and the excluded-file list xlist. Please note that the -L option does neither affect the search for the zipfile s nor the matching of archive entries to existing files on the extraction path.

When the stored filename appears to already have an appended NFS filetype extension, it is replaced by the info from the extra field. All Macintosh specific info is skipped. Data-fork and resource-fork are restored as separate files. Without this flag, these attribute bits are cleared for security reasons. The -LL option forces conversion of every filename to lowercase, regardless of the originating file system.

Unlike Unix more 1 , there is no forward-searching or editing capability. On some systems the number of available lines on the screen is not detected, in which case unzip assumes the height is 24 lines. If a file already exists, skip the extraction of that file without prompting. By default unzip queries before extracting any file that already exists; the user may choose to overwrite only the current file, overwrite all files, skip extraction of the current file, skip extraction of all existing files, or rename the current file.

File comments are created with the -c option of zip 1L , or with the -N option of the Amiga port of zip 1L , which stores filenotes as comments. This is a dangerous option, so use it with care. Many multi-user operating systems provide ways for any user to see the current command line of any other user; even on stand-alone systems there is always the threat of over-the-shoulder peeking.

Storing the plaintext password as part of a command line in an automated script is even worse. Hello, I am trying to return the name of the resulting file from a. How to unzip a. RedHat Commands. OpenSolaris Commands. Linux Commands. SunOS Commands. FreeBSD Commands. Full Man Repository. Advanced Search. Contact Us. Forum Rules.

Mark Forums Read. Thread Tools. View Public Profile for tayyabq8. Find all posts by tayyabq8. View Public Profile for porter. Find all posts by porter.

Where is it all going? For the record, use unzip -d myfolder squash. This mimics how most UI unzip tools work. Show 1 more comment. You can zip files up in compressed format with the GNU tar program: tar -zcvf myfile. To unzip that file, use: tar -zxvf myfile. Or use tar jcvf file. I downvoted your answer because the question is about how to deal with zip archives not tar files. Starfish, that's certainly within your rights, thanks for at least explaining why, so many people don't take the time to do that :- I took "zip" in the more generic sense compression rather than a specific format, so I'll make that more clear.

Be aware that tar archives may not work correctly when moving between different platforms, mac to linux or vice versa. Zip is much safer, as it works correctly on all systems.

I suppose technically this is gzip, so that's fine. I guess. Pretty obviously not what the question asked for though. If you don't have zip and unzip packages installed and you have java, you can use jar to unzip: jar -xf file. Not my server, no unzip, zip, 7z, nothing And this worked. This is a great tip. We need jdk in advance to execute this command. Compressing: 7za a archive. If you want to use the same compression algorithm with your tarballs, use the -J switch with tar : tar cJf archive.

Bob 1 1 silver badge 12 12 bronze badges. I should perhaps append this answer with atool , it's a nice little tool that makes using many different compressors more comfortable. Bind that to a and creating an archive becomes a arc. Starfish Starfish 3 3 silver badges 12 12 bronze badges. I know this is an old thread but this is the best answer.



0コメント

  • 1000 / 1000