Training resources for LFCS certification (Linux Foundation

Archiving and compressing files and directories

tar [options] [pathname ...] tar tvf [tarball]

Grouping and compressing with gzip, bzip2 and xz

$ tar czf myfiles.tar.gz file[0-9]
$ tar cjf myfiles.tar.bz2 file[0-9]
$ tar cJf myfile.tar.xz file[0-9]