Re:Papers and essays that every programmer should be aware of
by paganel on Saturday June 29, 2013 @06:22PM
(#5963911)
There are people (myself included) who cannot remember how exactly to use tar, the Unix command. For me it always goes like this: "Is it 'tar -fzhf... ' or 'tar -vgsf...'? Ok, I'll google it again, just this one time, promise".
[ Parent
| on HN ]
Re:Papers and essays that every programmer should be aware of
by Radix_ on Saturday June 29, 2013 @08:06PM
(#5964177)
Don't you mean 'man tar'? The most common usage is right in the intro. I don't use it much but always have to do the same...
Re:Papers and essays that every programmer should be aware of
by tedks on Saturday June 29, 2013 @06:44PM
(#5963963)
Doesn't 'tar xf' work for practically everything? I just checked and it works for lzma, bz2, and gz.
Re:Papers and essays that every programmer should be aware of
by ISL on Saturday June 29, 2013 @08:09PM
(#5964186)
I don't think it used to? I remember needing to explicitly state tar -xjf for bz2 stuff. I do it now reflexively. If it's handled correctly by -xf, that's awesome!
Re:Papers and essays that every programmer should be aware of
by LeonidasXIV on Sunday June 30, 2013 @10:42AM
(#5965938)
Yes, it does, but only GNU tar. I was using NetBSD when I stumbled over the fact that it couldn't 'tar xvf' my foo.tar.gz.
OTOH, I always have to look up unzip, because I fear that there is some option that I forgot. Well, most of the time I use a GUI for Zip, since they often decompress all over the folder unlike tars which are mostly contained in one single folder.
Re:Papers and essays that every programmer should be aware of
by tjr on Saturday June 29, 2013 @08:17PM
(#5964201)
Remember, a tar file need not be compressed. `tar xf' will certainly work fine on `foo.tar'.
Re:Papers and essays that every programmer should be aware of
by vidarh on Sunday June 30, 2013 @07:37AM
(#5965423)
I remember 3 tar incantations (to created a compressed archive, list, or uncompress one) that I treat pretty much as unchangeable commands. Probably should just alias them. Everything else I'll look up..