By default , unpacks files in the current directory , but in fact the unpacked files in a different directory, I want to know is how to set
------ Solution --------------------------------------------
tar -xvf Converted_Tap_July.tar
really is extracted to the current directory .
If the file is decompressed with a folder itself , it means that out of the file is decompressed with a folder path .
tar -tvf Converted_Tap_July.tar
can be decompressed file to see what is inside that content.
------ For reference only -------------------------------------- -
tar-C dir , you can specify a directory after extracting
------ For reference only -------------------- -------------------
-C, - directory = DIR
change to directory DIR
tar file.tgz-C / home / admin / tar
------ For reference only ------------------- --------------------
tar-xf file.tgz / tmp / file
------ For reference only - -------------------------------------
extracting file file.targ.z to / home / adin / file directory
tar-zxvf file.tar.gz-C / home / admin / file
------ For reference only -------------- -------------------------
Andy
ah I want to say you are not confused
没有评论:
发表评论