How do I unpack a tar file in Linux?

Thành Đạt

New member
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:
  1. tar –xvzf doc.tar.gz. Remember that the tar. …
  2. tar –cvzf docs.tar.gz ~/Documents. …
  3. tar -cvf documents.tar ~/Documents. …
  4. tar –xvf docs.tar. …
  5. gzip xyz.txt. …
  6. gunzip test.txt. …
  7. gzip *.txt.
 

Tìm kiếm

Back
Top