tar -xvf somefile.tar.gz gunzip somefile.tgz I guess it was never an issue for me.. that or I tar/untar too much XD
lol Well, I agree, I usually precede tar command with a man one Which is crazy, considering how much I do it, but still.. kinda like argument order in PHP's strpos or escape characters in regex and similar. I *know* them, but I always have doubts.. Why wouldn't you just unzip it along in the tar?
If I didn't tar, then it doesn't count as an attempt. And while I can appreciate the joke, "tar --help" is a valid tar command, however trivial it may be. Bomb defused.
Just gonna suck all the fun and humor out of it all literal minded and geeky real fast. z for gzip or j for bzip2. x for extract or c for compress. v for verbose. f for file followed by a space and the name of the tar file, use - as the file name for standard input/output. Then the paths of anything you wanna compress My fave is tar jcvf somedirectory{.tar.bz2,} since the brackets expand out to the tarball name and then the directory I wanna tar up. Lord (or the man page) help you if you want lzma compression though. Usually it's -- and then the name of the format like --xz. If you're a weirdo you could pipe to gzip or something manually I guess. But that would be really awk-ward (sorry I shouldn't have sed that). Also: -C works for wget and tar, and lets you change directories before tarring/untarring Speaking of lame puns, does anyone ever do anything like <nano/vi/vim/emacs/whatever> scratch touch fever cat scratch fever or other punny unix commands? My favorite is ./configure --help | less because if I'm installing something I usually am helpless.
That only works in the GNU version. I'll stick with "tar -xf {filename.tar}". That'll work on GNU, BSD, or SysV.
So I was tacking down a performance problem today at work and couldn't remember all of the switches for top. So naturtally I typed: man top I got a good giggle out of that one.
Christ.. ok, so it's not my native language, but still.. for a (long) moment I considered switching to terminal to check out what's funny :eusa_doh: Such an innocent soul