how to make a tarball in linux

Shell
tar -cvzf name.tar /path/to/directory
Source

Also in Shell: