New answers tagged tar
3
-h (or --dereference) to dereference will only work upon creation.
Reference: http://www.gnu.org/software/tar/manual/tar.html#SEC138
According to a similar answer here: How do I dereference links when extracting from a tar file? you can mount the archive then copy from it, though I have not tested this myself.
1
cpio is a standard format, each of the others (except possibly for pax) has quirks. Second best (because it is very portable) is GNU tar.
1
7z x -so foo.tar.bz2 | 7z x -si -ttar
-2
To compress a folder with tar, the answer is:
~]# mkdir /office
~]# ll
~]# tar -cvf office.tar office
~]#
That is it.
1
Xcode 4.3 moved make to /Applications/Xcode.app/Contents/Developer/usr/bin/make. You can install make to /usr/bin/ by downloading the command line tools package from Xcode's preferences or from developer.apple.com/downloads (which requires a free developer account but not Xcode).
If make install results in an error like cp: directory /usr/local/bin does not ...
1
There are many variations in the syntax of the tar command. GNU tar defaults to reading the archive on stdandard input and to writing the archive to standard output, but many other versions default to a tape device. Pass the f flag (with or without a dash — I think BSD versions support either) with the argument - to indicate stdin or stdout.
If you want to ...
2
Get the source
wget "http://www.sentex.net/~mwandel/jhead/jhead-2.97.tar.gz"
Untar the source
tar xzf jhead-2.97.tar.gz
Or, get and untar the source in one step
curl "http://www.sentex.net/~mwandel/jhead/jhead-2.97.tar.gz" | tar xz
Now you have a directory called jhead-2.97. Enter that directory and run make.
cd jhead-2.97
make
This will compile ...
Top 50 recent answers are included