Wednesday, 28 August 2019

To make a file tar.gz and untar the same

hec01v039748:/install # ll
total 4160748
drwxrwsrwx 6 root root       4096 Aug 22 15:20 HANA2_00_042_00
-rwxr-xr-x 1 root root 4243875840 Aug 28 13:11 HANA2_00_042_00.tar
drwxr-xr-x 3 root root       4096 Aug 28 08:56 hec01v039748
drwxrwxrwx 2 root root       4096 Jul 26  2016 .snapshot
hec01v039748:/install #


hec01v039748:/install # tar -cvzf HANA2_00_042_00.tar.gz HANA2_00_042_00


hec01v039748:/install # ll
total 8064956
drwxrwsrwx 6 root root       4096 Aug 22 15:20 HANA2_00_042_00
-rwxr-xr-x 1 root root 4243875840 Aug 28 13:11 HANA2_00_042_00.tar
-rw-r--r-- 1 root root 3982221501 Aug 28 13:26 HANA2_00_042_00.tar.gz
drwxr-xr-x 3 root root       4096 Aug 28 08:56 hec01v039748
drwxrwxrwx 2 root root       4096 Jul 26  2016 .snapshot
hec01v039748:/install #

to untar a tar file
hec01v039748:/install # tar -xvzf HANA2_00_042_00.tar.gz

No comments:

Post a Comment