To compress the file or folder, you can use tar command:

# tar -xzvf filename.tar.gz filename

Result :