Skip to content

109 Sandbox

A website made for testing

How to extract a tar archive without the leading directory

Published ·UPD ·In Recipes

tar -xzf archive.gz --strip-components=1

tar -xzf archive.tar.gz --strip-components=1

Documentation: manpages.debian.org/unstable/tar/tar.1.en