Home ›
Extract and decompress with tar into a directory of another nameExtract and decompress with tar into a directory of another name
Submitted by Benjamin Melançon on November 2, 2010 - 12:02pm
Can use
--strip-components=NUMBER
strip NUMBER leading components from file names on extraction
in conjunction with -C
but have to create the directory first anyway, so moving (mv)after the fact is probably easier.
Source
http://superuser.com/questions/146814/unpack-tar-but-change-directory-name-to-extract-to
Searched words:
extract tar change directory name
extract tar to given directory
Comments
Post new comment