The tar command on Linux is often used to create or extract .tar.gz or .tgz archive files, also called "tarballs". Command has integrated compression, It can create a .tar archive and then compress it with gzip (.tar.gz) or bzip2 (.tar.bz2) compression in a single command.