User login

tar

Extract and decompress with tar into a directory of another name

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

Syndicate content