linux tar extract to the specified directory
tar zxvf abc.tar.gz -C /opt
http://www.oschina.net/code/snippet_103999_10678