
tar https://xkcd.com/1168/
The age old question: how the do I extract a tarball on the Linux or Unix shell? Rob from XKCD failed to disarm bomb due to complex tar syntax. Now someone created a site dedicated to tar command that acts as a tar command cheat sheet for Unix and Linux users.
I guess the tar xf {file-name} is portable syntax for GNU+Linux, FreeBSD, MacOS X and does the right thing for extracting files:
tar xf file.tar.gz
tar xf file.tgz
tar xf file.tar.bz2
See cheat sheets for more info:
Comments on this entry are closed.
You are missing “-” from the commands… *BOOM* 😉
“-” is no longer needed.
Try that in Solaris, fucktard.