Tar is a widely used tool for archiving and compressing the files in Unix environment. By default if you simply create. But if you want to reduce or compress the size of the files, then you need to use. As we go through our article of how to use tar command in Solaris, you will understand the different ways through which files can be compressed and uncompressed.
Before explaining about how to use tar command in Solaris, it is important to make sure that you have a running Solaris 11 System along with tar command installed. Join Tek-Tips Forums! Join Us! By joining you are opting in to receive e-mail. Promoting, selling, recruiting, coursework and thesis posting is forbidden. Students Click Here. I have a tar. I tried tar xvf filename and it didnt work. Improve this answer. Romeo Ninov Romeo Ninov This has the potential advantage that some of the processing can happen in parallel.
Is the f - needed, or does Solaris tar output to stdout by default? Romeo: Thanks for the answer, I found it useful. Can you clarify why "-" is needed between cvf and directory name?
Additionally, I tried your command on several OSs - Solaris 10, I also reviewed the respective tar man pages - why does the above work in Linux without "-" before the cvf? I would expect Linux to require something like "tar -cvf So just do it manually: tar -cvf file.
This will work as long as you have enough spare disk space to store the intermediate uncompressed file. I can't think of any situation where this would be preferable to Romeo Ninov's answer. IlmariKaronen neither can I.
I just thought of this first. MikeA MikeA 3 3 silver badges 6 6 bronze badges. Show Threads. Show Posts. Registered User. Join Date: Oct I am transferring a large. Originally I tried to use info-zip's unzip, but I found out pretty quickly that it does not support files over 4GB.
Any suggestions on how to work around this problem? Different decompression utility? Different compression utility? Join Date: Jan Save the zip file as a tar file? What about gzip? Join Date: Feb Have you tried "jar".
I believe, jar and zip are compatible enc. Join Date: Nov From Solaris 8 on up zip and unzip are built into the os. GNU's gzip and unzip are also a good choice.
HPUX
0コメント