tar -zcvf file.tar.gz /path/to/dir/
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
tar -cvzf name.tar /path/to/directory