美文网首页
tar常用命令

tar常用命令

作者: 圼_2514 | 来源:发表于2019-01-30 13:58 被阅读0次

1.tar说明
原意是将文件备份到磁带上(tape archive 磁带存档),将许多文件保存在一个磁带或磁盘存档中,并可以从存档中恢复单个文件
2.tar [OPTION...] [FILE]... 参数说明

-c, --create
create a new archive 创建新档案
-r, --append
append files to the end of an archive 将文件追加到归档文件的末尾
-t, --list
list the contents of an archive 列出存档的内容
-x, --extract, --get
extract files from an archive 从存档中提取文件

-f, --file=ARCHIVE
use archive file or device ARCHIVE 使用存档文件或设备存档
-v, --verbose
verbosely list files processed 详细列出要处理的文件
-z, --gzip, --gunzip, --ungzip
filter the archive through gzip gzip文件
-j, --bzip2
filter the archive through bzip2 bzip2文件
3.参数说明
-v 加上后显示详细文件名称信息,可以不加
-f 必需放在最后一个参数,后面跟文件名
4.样例
4.1 .tar 打包,不压缩
打包:

相关文章

  • Linux学习

    Linux文件目录 ls常用选项 文本查看常用命令 tar命令 账号管理命令 useradd [username]...

  • Linux中安装注册中心Zookeeper

    Zookeeper和可以是redis 常用命令 java -version 查询jdk有没有安装 解压缩 tar ...

  • Hadoop总结

    Linux 1. 问题:Linux常用命令 参考答案:find、df、tar、ps、top、netstat等。(尽...

  • tar 常用命令

    仅打包,不压缩tar -cvf /tmp/etc.tar /etc 以 gzip 压缩tar -zcvf /tmp...

  • 常用命令--tar

    如果要学习linux 有些命令是必须会的,否则无法使用linux 目前想到的如下内容: 目录与文件的属性与权限,c...

  • tar常用命令

    1.tar说明原意是将文件备份到磁带上(tape archive 磁带存档),将许多文件保存在一个磁带或磁盘存档中...

  • tar常用命令

    tar 命令中的.tar 、.tar.gz 、.gz、.xz压缩解压 .tar只是进行打包,并没有压缩。 可用ta...

  • Centos7黑客帝国字符雨

    环境: cmatrix-1.2a.tar.gz源码包 安装 使用:cmatrix常用命令如下: 源码包制作rpm包...

  • Linux下nginx的安装

    1.安装依赖 2.下载tar包 3.安装 4.nginx常用命令-启动、停止、重启

  • linux常用命令-文件压缩与解压缩

    linux常用命令-文件压缩与解压缩 linux下的tar命令详解[https://www.cnblogs.com...

网友评论

      本文标题:tar常用命令

      本文链接:https://www.haomeiwen.com/subject/ijvzxqtx.html