To archive files with tar and gzip tar cvf outfile.tar files ... gzip outfile.tar or within one line tar cvf - files ... |gzip -c >outfile.tar.gz or shortly (for gnu tar) tar zcvf outfile.tar.gz files ...