How to use the tar tool to extract archive files

Knowledge Base - How To

How to use the tar tool to extract archive files

to extract the archive file /path/to/archive.tar.gz in the local folder

tar -xvf /path/to/archive.tar.gz

where x -> extract, v -> verify, f -> file.

to extract the archive file /path/to/archive.tar.gz in a different folder

tar -xvf /path/to/archive.tar.gz -C /path/to/folder