Expand a tar file

Hi,
On AIX 7.1
I have a tar file of 8Gb.

How can I expand it in a folder which is only 10 Gb?

When I copy the tar file in that folder I will have only 2Gb free. Then I can not run tar xvf in that folder.

Thanks for advise.

You can untar without the actual copy to host :

ssh user@host "cd /existing_folder_you_wish_to_untar_to && tar -xvf -" < mytar.tar

Regards
Peasant.

3 Likes