ubuntu create tar.bz2 from folder code example Example: create tar gz file from directory tar -czf tarball.tar.gz my_directory/