opening a .tar.gz file with a single command
when I download a .tar.gz file, I open it with two commands, first gunzip and then tar. Is it possible to open it with just one command? ...
when I download a .tar.gz file, I open it with two commands, first gunzip and then tar. Is it possible to open it with just one command? ...
I'm using Perl's Archive::Tar module. Problem with it is it pulls everything on to the memory and the does archiving and then writes on to the file system so there is limitation on the maximum file size that can be archived. Most of the times it says out of memory. In case of GNU tar, it takes chunk of file, archives it and writes it on ...
Patches are frequently released for my CMS system. I want to be able to extract the tar file containing the patched files for the latest version directly over the full version on my development system. When I extract a tar file it puts it into a folder with the name of the tar file. That leaves me to manually copy each file over to th...
I'm using Archive::Tar::Streamed to archive a 4GB directory containing very small small source code files and some jars. I'm using a system with 4GB RAM and using Archive::Tar::Streamed because I don't want my entire directory to be on the memory as it results in out of memory condition. I reading files one by one from the directory in D...
I have a series of files named filename.part0.tar, filename.part1.tar, filename.part8.tar. I guess tar can create multiple volumes when archiving, but I can't seem to find a way to unarchive them on Windows. I've tried to untar them using 7zip (GUI & commandline), WinRAR, tar114 (which doesn't run on 64-bit Windows), WinZip, and ZenTar...
I need to run the "tar" command (to decompress a file) within WindowsXP. Do I need a i.e Linux emulator ? ...
I am trying to untar a file on AIX 52 box and is successfull on one but fails on same OS but another box. Though ulimit is very well set to unlimited. Checked for tar version, ldd and cksum all of it match. Is there anything more to look into? How to arrive at its differences? ...
Is there a way to write a string directly to a tarfile? From http://docs.python.org/library/tarfile.html it looks like only files already written to the file system can be added. ...
tar -xvzf $filename.tar.gz || { exit $?; } Here my scripts would exit with errorCode 141. I am using Fedora Core 6 with tar version 1.15 it wont happen all the time, but more than 70 percent of the time it fails. ...
I would like to extract a file compressed in the tar.z (or .taz) format with the .NET framework. The problem is I cannot find any libraries wich support the LZW algorithm (often, zip, gzip and bzip2 are supported, and Z is not, for example in SharpZipLib). It appears that compress (the algorithm producing .z compressed files) is quite o...
I need to create a tarball of a directory and then compress it with bz2 in C++. Is there any decent tutorial on using libtar and libbz2? ...
How to I extract a subdirectory in a tarball into the current directory? Example, the tarball from wordpress: wordpress/ wordpress/wp-trackback.php wordpress/wp-config-sample.php wordpress/wp-settings.php wordpress/wp-rss2.php wordpress/readme.html wordpress/index.php ... How do I extract everything under wordpress/ into the current ...
I want do unzip a lot of zip files, is there a module or script that check which format the zip file is and decompress it? this should work on linux, other OSs I don't care for this. ...
I typically do: tar -czvf my_directory.tar my_directory What if I just want to include everything (including any hidden system files) in my_directory, but not the directory itself? I don't want: my_directory --- my_file --- my_file --- my_file I want: my_file my_file my_file ...
Hi I have this code that I found somewhere on stackoverflow that uses libtar and libbz2 to compress a directory: #include <libtar.h> #include <bzlib.h> #include <fcntl.h> #include <string> #include <iostream> using namespace std; int main(int argc, char **argv) { TAR *p_tar; char extract_to[] = "."; char *dst_path = arg...
Is there a simple shell command/script that supports excluding certain files/folders from being archived? I have a directory that need to be archived with a sub directory that has a number of very large files I do not need to backup. Not quite solutions: The tar --exclude=PATTERN command matches the given pattern and excludes those fi...
hi, I want to tell whether two tarball files contain identical files, in terms of file name and file content, not including meta-data like date, user, group. However, There are some restrictions: first, I have no control of whether the meta-data is included when making the tar file, actually, the tar file always contains meta-data, so d...
Scenario: I have a directory on a server that hosts my website that contains hundreds of user-submitted images. I am creating a backup script that takes all the images from the directory and compresses them into one .tar.gz file. The command I have so far is: tar -czpf /path/to/backups/my_backup.tar.gz path/to/images/ Problem: No inside ...
Can you have tar travel to a certain direct and then tar files relative to that directory? All while using one command (tar)? For example instead of doing cd /home/test/backups; tar zvPcf backup.tar.gz ../data/ I could do something like tar -g '/home/test/backups/' zvPcf backup.tar.gz ../data/ ...
Hi all, I'm generating some code using XSLT but the generated sources should be localized in a set of distinct files. Is there a tool/format (based on XML ?) that could be used to store the files in a jar/ar/tar-like format . I'm thinking of something like this: <?xml version="1.0"?> <archive> <file path="test/Test01.java" content-type=...