tar -zcvf filename.tar.gz /path/to/dir
tar -zxvf filename.tar.gz -C /tmp
Read More