tar destination directory code example Example: extract tar to destination tar xf file.tar.gz -C /root/Desktop/folder