tar(1) -xzf nama-file.tar.gz -C /path/directory-tujuan
The GNU version of the tar archiving utility
-x, --extract, --get
      extract files from an archive
-z, --gzip, --gunzip --ungzip
-f, --file ARCHIVE
      use archive file or device ARCHIVE
-C, --directory DIR
      change to directory DIR
source manpages: tar