700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > linux 解压 某文件夹中 弱智问题:如何用tar只解压缩出tar.gz中的某一个文件夹...

linux 解压 某文件夹中 弱智问题:如何用tar只解压缩出tar.gz中的某一个文件夹...

时间:2020-07-28 12:42:26

相关推荐

linux 解压 某文件夹中 弱智问题:如何用tar只解压缩出tar.gz中的某一个文件夹...

-t 选项列举包里的文件, 匹配模式和-x提取一样的

有两种匹配模式,一种是包含--include,一种是排斥--exclude, 至于-I/T, -X只是从文件中读取匹配模式

tar [bundled-flags ] [ | ...]

tar {-c} [options] [files | directories]

tar {-r | -u} -f archive-file [options] [files | directories]

tar {-t | -x} [options] [patterns]

-t List archive contents to stdout.

-u Like -r, but new entries are added only if they have a modifica-

tion date newer than the corresponding entry in the archive.

Note that this only works on uncompressed archives stored in reg-

ular files.The -f option is required.

-x Extract to disk from the archive. If a file with the same name

appears more than once in the archive, each copy will be

extracted, with later copies overwriting (replacing) earlier

copies.

--exclude pattern (-W exclude=pattern)

Do not process files o

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。