To create a unix tar file supply the path to the directory which you want to tar in the 'directoryname' below:
$ tar cvf filename.tar directoryname
To extract a tar file into a directory supply the path to the 'directoryname' as below.
$ tar xvf filename.tar directoryname