Linux - Tarballs, Archive and Compress Folders (tar)

Опубликовано: 07 Октябрь 2024
на канале: Eli the Computer Guy
14,959
444

Find code and diagrams at: https://www.EliTheComputerGuy.com

Tarballs are Compressed Archive Files of Folders that are useful when moving folders and making sure all contents stay intact.

In the name tarball “tar” stands for the archiving, and “ball” stands for the compression.

tar -czvf archiveName.tar.gz originalFolder – This creates a tarball from the folder originalFolder
c = create
z = compress with gzip
v = verbose
f = specify filename
tar —list -f archiveName.tar.gz – This lists items in a tarball
tar -xzvf archiveName.tar.gz – Extracts the contents of a tarball
x = extract
Additional Reading:

https://linux.die.net/man/1/tar