Tar -C in Solaris 10

Hi
I what unpack my TAR archive in separate folder :wink:
For example on Linux:

# mkdir /data/one/two
# cd /data
# touch 11{1,2,3,4,5,6,7,8}
# pwd
/data
# ls -l
total 32
-rw-r--r-- 1 root root 0 Oct 11 13:54 111
-rw-r--r-- 1 root root 0 Oct 11 13:54 112
-rw-r--r-- 1 root root 0 Oct 11 13:54 113
-rw-r--r-- 1 root root 0 Oct 11 13:54 114
-rw-r--r-- 1 root root 0 Oct 11 13:54 115
-rw-r--r-- 1 root root 0 Oct 11 13:54 116
-rw-r--r-- 1 root root 0 Oct 11 13:54 117
-rw-r--r-- 1 root root 0 Oct 11 13:54 118
# tar -cf 11x.tar 11*
# ls -l *.tar
-rw-r--r-- 1 root root 10240 Oct 11 13:54 11x.tar
# tar xvf 11x.tar -C /data/one/two
# ls -l /data/one/two
total 32
-rw-r--r-- 1 root root 0 Oct 11 13:54 111
-rw-r--r-- 1 root root 0 Oct 11 13:54 112
-rw-r--r-- 1 root root 0 Oct 11 13:54 113
-rw-r--r-- 1 root root 0 Oct 11 13:54 114
-rw-r--r-- 1 root root 0 Oct 11 13:54 115
-rw-r--r-- 1 root root 0 Oct 11 13:54 116
-rw-r--r-- 1 root root 0 Oct 11 13:54 117
-rw-r--r-- 1 root root 0 Oct 11 13:54 118

How i can it on Solaris 10 ? -C not worked :frowning:

See if gtar is installed

pkginfo SUNWgtar

If not, download the appropriate package from SunFreeware.com

Cheers,
ZB

$ pkginfo SUNWgtar
system SUNWgtar gtar - GNU tar

/usr/sfw/bin/gtar