Decompress the specified file in the TAR package (). Category:
Linux tar decompress the tar package and specify a file. For example, a xxl.tar.gz package (created using tar-zcvf xxl.tar.gz XXL/) is displayed in/home/xxl ), we can use tar-ztvf xxl.tar.gzto prepare what files are included in the package xxl.tar.gz, if there is a file test in the package. the SQL statement is in the XXL/date/directory. Now I need to decompress this file. Other files are not required. I can decompress it using the following command: tar-zxvf xxl.tar.gz. /XXL/date/test. at this time, SQL generates a folder/XXL/date under the current directory, which contains the file test. SQL, so that I do not need to unpack the entire tar package, you can also decompress the specified file to the specified folder tar-zxvf xxl.tar.gz-C/home/xxl1 // XXL/date/test. SQL: This is the file test. SQL will be in/Ho In the ME/xxl1 folder, This method is suitable for use when the package is large and only one or two files are in it. If you have any improper information, please kindly advise!