flybywire flybywire - 1 year ago 90
Linux Question

opening a .tar.gz file with a single command

when I download a .tar.gz file, I open it with two commands, first

and then

Is it possible to open it with just one command?

Answer Source
tar xzf file.tar.gz

The letters are:

  • x - extract
  • z - gunzip the input
  • f - Read from a file, not stdin
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download