重写控制:
-k, --keep-old-files don’t replace existing files when extracting,
treat them as errors
–keep-directory-symlink preserve existing symlinks to directories when
extracting
–keep-newer-files
不要替换比归档中副本更新的已存在的文件
–no-overwrite-dir 保留已存在目录的元数据
–one-top-level[=DIR] create a subdirectory to avoid having loose files
extracted
–overwrite 解压时重写存在的文件
–overwrite-dir 解压时重写已存在目录的元数据(默认)
–recursive-unlink 解压目录之前先清除目录层次
–remove-files 在添加文件至归档后删除它们
–skip-old-files don’t replace existing files when extracting,
silently skip over them
-U, --unlink-first 在解压要重写的文件之前先删除它们
-W, --verify 在写入以后尝试校验归档
选择输出流:
–ignore-command-error 忽略子进程的退出代码
–no-ignore-command-error
将子进程的非零退出代码认为发生错误
-O, --to-stdout 解压文件至标准输出
–to-command=COMMAND
将解压的文件通过管道传送至另一个程序
操作文件属性:
–atime-preserve[=METHOD]
在输出的文件上保留访问时间,要么通过在读取(默认
METHOD=‘replace’)后还原时间,要不就不要在第一次(METHOD=‘system’)设置时间
–clamp-mtime only set time when the file is more recent than
what was given with --mtime
–delay-directory-restore
直到解压结束才设置修改时间和所解目录的权限
–group=名称 强制将 NAME
作为所添加的文件的组所有者
–mode=CHANGES 强制将所添加的文件(符号)更改为权限
CHANGES
–mtime=DATE-OR-FILE 从 DATE-OR-FILE 中为添加的文件设置
mtime
-m, --touch 不要解压文件的修改时间
–no-delay-directory-restore
取消 --delay-directory-restore 选项的效果
–no-same-owner
将文件解压为您所有(普通用户默认此项)
–no-same-permissions
从归档中解压权限时使用用户的掩码位(默认为普通用户服务)
–numeric-owner 总是以数字代表用户/组的名称
–owner=名称 强制将 NAME
作为所添加的文件的所有者
-p, --preserve-permissions, --same-permissions
解压文件权限信息(默认只为超级用户服务)
–preserve 与 -p 和 -s 一样
–same-owner
尝试解压时保持所有者关系一致(超级用户默认此项)
-s, --preserve-order, --same-order
member arguments are listed in the same order as
the files in the archive
–sort=ORDER directory sorting order: none (default), name or
inode
Handling of extended file attributes:
–acls Enable the POSIX ACLs support
–no-acls Disable the POSIX ACLs support
–no-selinux Disable the SELinux context support
–no-xattrs Disable extended attributes support
–selinux Enable the SELinux context support
–xattrs Enable extended attributes support
–xattrs-exclude=MASK specify the exclude pattern for xattr keys
–xattrs-include=MASK specify the include pattern for xattr keys
设备选择和切换:
-f, --file=ARCHIVE 使用归档文件或 ARCHIVE 设备
–force-local
即使归档文件存在副本还是把它认为是本地归档
-F, --info-script=名称, --new-volume-script=名称
在每卷磁带最后运行脚本(隐含 -M)
-L, --tape-length=NUMBER 写入 NUMBER × 1024 字节后更换磁带
-M, --multi-volume 创建/列出/解压多卷归档文件
–rmt-command=COMMAND 使用指定的 rmt COMMAND 代替 rmt
–rsh-command=COMMAND 使用远程 COMMAND 代替 rsh
–volno-file=FILE 使用/更新 FILE 中的卷数
设备分块:
-b, --blocking-factor=BLOCKS 每个记录 BLOCKS x 512 字节
-B, --read-full-records 读取时重新分块(只对 4.2BSD 管道有效)
-i, --ignore-zeros 忽略归档中的零字节块(即文件结尾)
–record-size=NUMBER 每个记录的字节数 NUMBER,乘以 512
选择归档格式:
-H, --format=FORMAT 创建指定格式的归档
FORMAT 是以下格式中的一种:
gnu GNU tar 1.13.x 格式
oldgnu GNU 格式 as per tar <= 1.12
pax POSIX 1003.1-2001 (pax) 格式
posix 等同于 pax
ustar POSIX 1003.1-1988 (ustar) 格式
v7 old V7 tar 格式
–old-archive, --portability
等同于 --format=v7
–pax-option=关键字[[:]=值][,关键字[[:]=值]]…
控制 pax 关键字
–posix 等同于 --format=posix
-V, --label=TEXT 创建带有卷名 TEXT
的归档;在列出/解压时,使用 TEXT
作为卷名的模式串
压缩选项:
-a, --auto-compress 使用归档后缀名来决定压缩程序
-I, --use-compress-program=PROG
通过 PROG 过滤(必须是能接受 -d
选项的程序)
-j, --bzip2 通过 bzip2 过滤归档
-J, --xz 通过 xz 过滤归档
–lzip 通过 lzip 过滤归档
–lzma 通过 xz 过滤归档
–lzop 通过 xz 过滤归档
–no-auto-compress 不使用归档后缀名来决定压缩程序
-z, --gzip, --gunzip, --ungzip 通过 gzip 过滤归档
-Z, --compress, --uncompress 通过 compress 过滤归档
本地文件选择:
–add-file=FILE 添加指定的 FILE 至归档(如果名字以 -
开始会很有用的)
–backup[=CONTROL] 在删除前备份,选择 CONTROL 版本
-C, --directory=DIR 改变至目录 DIR
–exclude=PATTERN 排除以 PATTERN 指定的文件
–exclude-backups 排除备份和锁文件
–exclude-caches 除标识文件本身外,排除包含
CACHEDIR.TAG 的目录中的内容
–exclude-caches-all 排除包含 CACHEDIR.TAG 的目录
–exclude-caches-under 排除包含 CACHEDIR.TAG
的目录中所有内容
–exclude-ignore=FILE read exclude patterns for each directory from
FILE, if it exists
–exclude-ignore-recursive=FILE
read exclude patterns for each directory and its
subdirectories from FILE, if it exists
–exclude-tag=FILE 除 FILE 自身外,排除包含 FILE
的目录中的内容
–exclude-tag-all=FILE 排除包含 FILE 的目录
–exclude-tag-under=FILE 排除包含 FILE 的目录中的所有内容
–exclude-vcs 排除版本控制系统目录
–exclude-vcs-ignores read exclude patterns from the VCS ignore files
-h, --dereference
跟踪符号链接;将它们所指向的文件归档并输出
–hard-dereference
跟踪硬链接;将它们所指向的文件归档并输出
-K, --starting-file=MEMBER-NAME
begin at member MEMBER-NAME when reading the
archive
–newer-mtime=DATE 当只有数据改变时比较数据和时间
–no-null 禁用上一次的效果 --null 选项
–no-recursion 避免目录中的自动降级
–no-unquote do not unquote input file or member names
–null -T 读取以空终止的名字,-C 禁用
-N, --newer=DATE-OR-FILE, --after-date=DATE-OR-FILE
只保存比 DATE-OR-FILE 更新的文件
–one-file-system 创建归档时保存在本地文件系统中
-P, --absolute-names don’t strip leading '/'s from file names
–recursion 目录递归(默认)
–suffix=STRING 在删除前备份,除非被环境变量
SIMPLE_BACKUP_SUFFIX
覆盖,否则覆盖常用后缀(‘’)
-T, --files-from=FILE 从 FILE
中获取文件名来解压或创建文件
–unquote unquote input file or member names (default)
-X, --exclude-from=FILE 排除 FILE 中列出的模式串
文件名变换:
–strip-components=NUMBER 解压时从文件名中清除 NUMBER
个引导部分
–transform=EXPRESSION, --xform=EXPRESSION
使用 sed 代替 EXPRESSION
来进行文件名变换
文件名匹配选项(同时影响排除和包括模式串):
–anchored 模式串匹配文件名头部
–ignore-case 忽略大小写
–no-anchored patterns match after any ‘/’ (default for
exclusion)
–no-ignore-case 匹配大小写(默认)
–no-wildcards 逐字匹配字符串
–no-wildcards-match-slash wildcards do not match ‘/’
–wildcards 使用通配符(默认对 exclusion )
–wildcards-match-slash wildcards match ‘/’ (default for exclusion)
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数Linux运维工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年Linux运维全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Linux运维知识点,真正体系化!
由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新
如果你觉得这些内容对你有帮助,可以添加VX:vip1024b (备注Linux运维获取)
75198989)]
[外链图片转存中…(img-z2IfMF9P-1712675198991)]
[外链图片转存中…(img-HOOOUDkt-1712675198991)]
[外链图片转存中…(img-R4Ws2Z1y-1712675198991)]
[外链图片转存中…(img-vJbSrcxz-1712675198992)]
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Linux运维知识点,真正体系化!
由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新
如果你觉得这些内容对你有帮助,可以添加VX:vip1024b (备注Linux运维获取)
[外链图片转存中…(img-LsRkDgAB-1712675198992)]