<[email protected]> ha escrit: > When I want to use tar to extract to the specified directory, I need, mkdir > tar_dir ; tar xzf xx.tar.gz -C tar_dir
You can just do tar --transform s,^,tar_dir/, -xf xx.tar.gz instead. For details, see https://www.gnu.org/software/tar/manual/html_node/transform.html#IDX444 Regards, Sergey
