by rtpg · 13y ago · 0 comments
there's a cool twitter account called "Command Line Magic" (https://twitter.com/climagic) that does some fun stuff, and is pretty shell-agnostic.
Also, for those willing to, I'd strongly suggest checking out fish. it's not bash-compatible, but there's a lot of good usability aspects to it (especially compared to vanilla bash), I love it.
Out of curiosity though, this command : tar zxvf package.tar.gz -C new_dir
it's always intrigued me that the tar command (I imagine it is mainly used to "unzip" things) does not make it very simple to do this. I've started to memorize the 4-letter combo but for a while I had to google it everytime (man pages are not useful for learning things for a lot of unix cl tools).
I am surprised the xz(v)f invocation isn't in the examples. I could've sworn it's there...
man is obviously useful when you want to know what one switch does, but there are a lot of tools that could use an introductory "how to use"
It helps to remember that tar stands for Tape ARchiver (or Tape ARchive, or something, depending on who you ask), and that its interface really does date from the era when dealing with tape was a common task for pretty much any sysadmin.