extract tar.gz to directory code example Example: tar to directory tar -xf file_name.tar -C /target/directory