mirror of
https://github.com/cheat/cheat.git
synced 2024-11-23 22:41:35 +01:00
24 lines
533 B
Plaintext
24 lines
533 B
Plaintext
# To extract an uncompressed archive:
|
|
tar -xvf /path/to/foo.tar
|
|
|
|
# To create an uncompressed archive:
|
|
tar -cvf /path/to/foo.tar /path/to/foo/
|
|
|
|
# To extract a .gz archive:
|
|
tar -xzvf /path/to/foo.tgz
|
|
|
|
# To create a .gz archive:
|
|
tar -czvf /path/to/foo.tgz /path/to/foo/
|
|
|
|
# To list the content of an .gz archive:
|
|
tar -ztvf /path/to/foo.tgz
|
|
|
|
# To extract a .bz2 archive:
|
|
tar -xjvf /path/to/foo.tgz
|
|
|
|
# To create a .bz2 archive:
|
|
tar -cjvf /path/to/foo.tgz /path/to/foo/
|
|
|
|
# To list the content of an .bz2 archive:
|
|
tar -jtvf /path/to/foo.tgz
|