tar -czf /path/to/output/folder/filename.tar.gz/path/to/folder
Extract tar.gz to folder:
tar -xvzf /path/to/output/folder/filename.tar.gz -C /path/to/folder
List the contents of a tar.gz file:
c: create
x: extract
t: List the contents of an archive
v: Verbosely list files processed (display detailed information)
z: Filter the archive through gzip so that we can open compressed (decompress) .gz tar file
j: Filter archive through bzip2, use to decompress .bz2 files.
f filename: Use archive file called filename
tar -ztvf file.tar.gzWhere:
c: create
x: extract
t: List the contents of an archive
v: Verbosely list files processed (display detailed information)
z: Filter the archive through gzip so that we can open compressed (decompress) .gz tar file
j: Filter archive through bzip2, use to decompress .bz2 files.
f filename: Use archive file called filename
No comments:
Post a Comment