3 ms·
I finally learned the basic tar command from this menemonic: https://www.reddit.com/r/ProgrammerHumor/comments/1x0qwh/having_trouble_remembering_tar_syntax/ ht
by 627467 6y ago
I finally learned the basic tar command from this menemonic:
https://www.reddit.com/r/ProgrammerHumor/comments/1x0qwh/having_trouble_remembering_tar_syntax/ https://www.reddit.com/r/ProgrammerHumor/comments/1x0qwh/hav...
- mxuribe 6y agoThat's as brilliant as it is cute! Thanks for sharing! Now, get to da chopper! ;-)
- jolmg 6y ago`tar -xfj foo.tar.bz2` would extract the file `foo.tar.bz2` from inside the archive `j`. IOW, it's providing `j` as the argument to the option `-f` that's used to specify the archive file. It should rather be `-xjf`. Also, case matters, `-J` is for .xz files, not .bz2. `tar` has a pretty simple calling syntax, probably simpler than most utilities. I encourage people to use the manpages instead of cute but wrong or misleading mnemonics.