I found this link on how to open tgz in one step.
gzip -dc target.tar.gz | tar xf -
What does the '-' mean?
|
I found this link on how to open tgz in one step.
What does the '-' mean? |
||||
|
It's a common convention to use
|
|||||
|
|
Another convention is to use '-' to indicate the end of flags, and the beginning of file names. That behavior is built-in to the getopt(3) on RedHat 4, at least. I can't find a Red Hat man page that uses '-' to indicate end-of-arguments, they all seem to use '--' to do that. The awk man page has '--' in that context, so maybe only old "heirloom" Unix or Solaris commands use '-' as a arguments - file names separator. |
|||||||
|
tar xfz target.tar.gzand for bziptar xfj target.tar.bz2– Deleted Account Mar 16 '11 at 23:04