07. Sep 2023
1 min
The tar program is often used for backups and for sharing files. To create a tar archive, use the command tar -cvf myarchive.tar myfolder/, where myarchive.tar is the name of the archive and myfolder/ is the directory you want to archive. To extract a tar archive, use tar -xvf myarchive.tar, where myarchive.tar is the name of the archive you want to extract.