Linux: tar extract without absolute path

Published by

Posted on October 05, 2016


tar -zxvf shell.tar.gz --strip-components=3

You can also extract the content to another location using
tar -zxvf shell.tar.gz --strip-components=3 -C /location