Opening a .tar.gz file with a single command

前端 未结 7 1316
时光取名叫无心
时光取名叫无心 2021-01-31 15:13

When I download a .tar.gz file, I open it with two commands, first gunzip and then tar.

Is it possible to open it with just one command?

7条回答
  •  执笔经年
    2021-01-31 15:36

    tar xzf file.tar.gz
    

    The letters are:

    • x - extract
    • z - gunzip the input
    • f - Read from a file, not stdin

提交回复
热议问题