Archives and installing from source: tar, gzip, make
Sign in to read this lesson
Backing up a site, compressing logs, moving a directory to another server — all of this is done with archives. In this lesson we learn to create, inspect and extract archives with tar and gzip, and the basic steps of installing a program that is not in the repository from its source code.
What you will learn
tarcombines files into one archive,gzip/xz/zstdcompress it;.tar.gzis the two together.- Remember:
ccreate,xextract,tlist,zgzip,ffile name,vverbose. tar -czf name.tar.gz dir,tar -tzf name.tar.gz,tar -xzf name.tar.gz -C target.- In backups add the date to the name:
$(date +%F); always look inside with-tbefore extracting. - Installing from source:
./configure,make,sudo make install— when there is no package, with care.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.