How do I unpack a tar file in Linux?
Answer
Let’s consider that we want to extract and open a doc file, and then we can use the below command to unzip the file on Linux:
Answer
Let’s consider that we want to extract and open a doc file, and then we can use the below command to unzip the file on Linux:
- tar –xvzf doc.tar.gz. Remember that the tar. …
- tar –cvzf docs.tar.gz ~/Documents. …
- tar -cvf documents.tar ~/Documents. …
- tar –xvf docs.tar. …
- gzip xyz.txt. …
- gunzip test.txt. …
- gzip *.txt.