tar extract to location code example
Example 1: tar to directory
tar -xf file_name.tar -C /target/directory
Example 2: tar extract to specific location
tar xvf my.tar.gz -C /home/my/location/
tar -xf file_name.tar -C /target/directory
tar xvf my.tar.gz -C /home/my/location/