create tar in ubuntu code example
Example 1: how to tar linux
tar -zcvf file.tar.gz /path/to/dir/
Example 2: how to make a tarball in linux
tar -cvzf name.tar /path/to/directory
tar -zcvf file.tar.gz /path/to/dir/
tar -cvzf name.tar /path/to/directory