Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tar]

tar is a command-line program that creates and manipulates archive files. Files with a .tar extension are sometimes called tarballs as they provide a way to combine multiple files into a single binary file.

3
votes
1answer
69 views

Unpacking a tarball via terminal like the Finder

If I have a .tar or .tgz or .tbz on my desktop, and I double click on it, I get the folder that was compressed, neatly decompressed right next to the archive file. Just like you'd expect. When I try ...
2
votes
1answer
20 views

Is it safe to create a tarball of a Time Machine backup?

Is it possible for me to create a .tar.gz, .tar.xz, etc file of a .backupdb? Are there any precautions I need to take to ensure that all permissions, hardlinks, etc are preserved? Will tar destroy the ...
1
vote
1answer
324 views

How can I uncompress a tar.xz thats been compressed on ubuntu and uncompress it on mac with the archive utility?

I have a file sent to me as a file_name.tar.xzfile thats been compressed on ubuntu and I want to uncompress it on my mac. This isnt readily available out of the box so I looked up and installed a brew ...
1
vote
0answers
76 views

tar extraction errors on NFS : “Can't create … OR Could not stat …”

I need to install homebrew on a Macmini6,2 on which I don't have the admin rights and cannot write in /usr/local so I try to extract brew-1.7.1.tar.gz in $HOME (which is mounted in an NFS). But then ...
1
vote
0answers
1k views

Your system has run out of application memory: /tmp directory of tar command

I once extracted a huge tar file in terminal, but it was too big. So, in the middle of the process, my computer ran out of memory, and everything crashed. I rebooted my system, hoping that things get ...
1
vote
1answer
115 views

tar cvfz command not writing on iCloud Drive folder

I am trying to link up (create a copy) of a folder in the User's Libraryinto the iCloud Drive folder, so that it will be synchronised across computers should I need to change machine. For your ...
3
votes
2answers
12k views

How uncompress tar.lz file

I was trying to uncompress a tar.lz file. https://unix.stackexchange.com/questions/218230/why-i-cant-unpack-tar-bz2-or-tar-xz-files/218232#218232 Joses-MacBook-Air:~ joseluisbz$ ls -al /usr/local/...
0
votes
1answer
115 views

tar is giving a symbol error in a bash install script?

I've been trying to install meteor and as part of the install process it downloads node from a tar file which it pipes to tar. But the tar extract command is erroring out with a missing symbol? I ...
1
vote
1answer
932 views

Tar excluding ._ files

Is there a way to create a tar file in OS X (Sierra, preferably) that does not include the ._ files? I've tried using the --exclude option, but clearly don't know the right pattern to use.
3
votes
1answer
2k views

Create tar archive with xz compression?

I'd like to create a tarball using the xz compression tool. According to google, as of 10.10 there is an undocumented "--xz" switch for tar but I can't get it to work. On linux there is a "-J" switch ...
1
vote
1answer
34 views

How can I de-compress a source file on my basic MacBookAir (macOS Sierra Version 10.12.2)

I've downloaded the source file from https://arxiv.org/format/1610.01410v2 How can I decompress it to obtain the plain text (say, in a TextEdit file)? The file I downloaded is designated 1610....
1
vote
1answer
820 views

Why does .tar.gz automatically extract the GZip archive when I download it in Safari?

I downloaded a .tar.gz archive backup of a website. Every time I download it, when I click the magnifying glass in Safari Downloads, it takes me to the file, but it's now just a .tar, and so is ...
0
votes
2answers
602 views

How to download files which are not dmg files to Mac applications?

Downloading files on Mac via .dmg is super easy, but anything else e.g. tar.gz files or zip files is completely baffling to me. Where do I unzip the files to make sure the applications will work and ...
1
vote
1answer
638 views

Using “tar” command in Terminal for multiple folders/files

I have many files like these SomeDirectory/RandomName.spa SomeDirectory/AnotherRandomName.spa SomeDirectory/YetAnotherRandomName.spa ... I want to unpack every .spa file in SomeDirectory to their ...
4
votes
2answers
703 views

Can I safely backup my system by simply tarring things?

Of course, the recommended method of backing up an OSX machine is to use Time Machine. But let's say that, for whatever reason, I'm deadset on doing it myself. If I simply tar up things I care about (...
23
votes
4answers
26k views

Why is extracting this tgz throwing an error on my Mac but not on Linux?

I'm experiencing a rather odd problem, and I can't figure out what's going on. I have a tgz file, scip-3.2.0.tgz, that is throwing an error when I attempt to unpack it. The error is only occurring on ...
1
vote
0answers
2k views

Does OSX 10.10.4 support LZMA compression at the individual file level (not tar files)?

From the command line, I would like to compress some database dumps using the LZMA algorithm. And, OSX adds XZ support (written in October of last year), claims " It turns out the XZ support in OS X ...
5
votes
3answers
1k views

How do I create a Folder Action Script to tar items dropped in folder?

I would like to drop/copy files/folders and have them compressed then copied to my desktop. This is what I know so far... and it isn't much so any help would be appreciated. on adding folder items to ...
1
vote
1answer
151 views

prevent doubleapple files creation when tarring directories (Snow Leopard)

I'm looking how to prevent tar from saving or creating .AppleDouble shadow files and preferably do it in an automated manner. There are a few questions asking why this happens, but I want a solution ...
6
votes
2answers
6k views

Child process exited with status 254 error when extracting a tar.xz file

I'm trying to extract a tar.xz file with tar in Mac OS X Lion. I'm using bsdtar 2.8.3 - libarchive 2.8.3. I'm able to use tar to extract anything else I've tried (.zip, .tar, .tar.gz, etc.), but when ...
3
votes
1answer
993 views

Why doesn't tar recognize .iso files, even though the documentation says it should?

man tar says that OS X's tar implementation should be able to extract .iso files. tar creates and manipulates streaming archive files. This implementation can extract from tar, pax, cpio, zip, jar,...
5
votes
2answers
1k views

Will setting a cron job to delete ._ shadow files on a linux share work?

I recently tarred up a directory to send to a remote linux system. When I untarred it, there were ._ files tossed into the target directory. I did a search and found articles of people being ...
6
votes
1answer
1k views

Bug with regards to .tar.gz in Chrome when 'Asking where to save downloads'

Every time I try to download or save a .tar.gz file, I get something like this: The popup is simply wrong, I've used the right .tar.gz extension. Clicking on Use .gz saves the file as .tar.gz, and ...
5
votes
4answers
37k views

Not able to extract any .gz or .tar file (Mac OS X 10.5.8)

I have Mac OS X 10.5.8. I am not able to extract .tar or .tgz files with any of the extractor utilities (Mac OS Default Archiver or WinZip or 7zip or any other, I have tried almost all possible). ...