Compress:
tar -czvf some-file.tar.gz .
OR
tar -czvf some-file.tar.gz <some/folder/location/>
Untar:
To a directory,
sudo tar -xvf some-file.tar.gz -C /some/folder/location/
To current directory,
sudo tar -xvf some-file.tar.gz
Note: to prevent a folder being created when extracting use `--strip-components=1` option. ex.
sudo tar -xvf some-file.tar.gz -C /some/folder/location/ --strip-components=1