51CTO博客已为您找到关于tar -cvf命令详解的相关内容,包含IT学习相关文档代码介绍、相关教程视频课程,以及tar -cvf命令详解问答内容。更多tar -cvf命令详解相关解答可以来51CTO博客参与分享和学习,帮助广大IT技术人实现成长和进步。
tar -cvf 压缩文件名.tar 文件夹名称 “` 其中,-c表示创建新的tar文件,-v表示输出详细信息,-f表示指定输出的文件名。 继续以上面的示例,可以输入以下命令来压缩文件夹: “`shell tar -cvf command_folder.tar command_folder “` 此命令将会在当前目录下创建一个名为command_folder.tar的压缩文件,其中包含comm...
To create a new archive file that contains the file1 file and pass the archive file to the dd command to be written to the /dev/rmt1 device, enter: tar -cvf - file1 | dd of=/dev/rmt1 conv=sync To display the names of the files in the out.tar disk archive file on the curre...
要创建包含以下内容的新归档文件:file1file and pass the archive file to the德command to be written to the/dev/rmt1设备,输入: tar -cvf - file1 | dd of=/dev/rmt1 conv=sync 要显示文件的名称,请在out.tar当前目录上的磁盘归档文件,请输入: ...
, --help :打印帮助信息--usage :打印可用的选项--version :打印版本信息 命令示例 只打包不压缩 tar -cvf abc.tar abc 创建一个打包并压缩的文件 tar -czvf abc.tar.gz a.txt b.txt c.txt解释:c:打包、z:使用gzip压缩、v:打印debug信息、f:指定打包的文件名 把文件夹进行打包并压缩 tar -czvf...
tar -cvf archive.tar /path/to/directory 在这个命令中: c表示创建一个新的tar文件。 v表示在创建过程中显示详细信息(可选)。 f后面跟的是输出的tar文件名。 例如,如果你想将/home/user/documents目录打包成一个tar文件,可以运行以下命令: tar -cvf documents.tar /home/user/documents ...
# tar -tf all.tar这条命令是列出all.tar包中所有文件,-t是列出文件的意思# tar -xf all.tar这条命令是解出all.tar包中所有文件,-t是解开的意思压缩tar -cvf jpg.tar *.jpg 将目录里所有jpg文件打包成tar. 3、jpgtar -czf jpg.tar.gz *.jpg 将目录里所有jpg文件打包成jpg.tar后,并且将其用gzip...
[root@linux ~]# tar -cvf /tmp/etc.tar /etc <==仅打包,不压缩! [root@linux ~]# tar -zcvf /tmp/etc.tar.gz /etc <==打包后,以 gzip 压缩 [root@linux ~]# tar -jcvf /tmp/etc.tar.bz2 /etc <==打包后,以 bzip2 压缩 # 特别注意,在参数 f 之后的文件档名是自己取的,我们习惯上都...
tar -cvf jpg.tar *.jpg //将目录里所有jpg文件打包成jpg.tar tar -czf jpg.tar.gz *.jpg //将目录里所有jpg文件打包成jpg.tar后,并且将其用gzip压缩,生成一个gzip压缩过的包,命名为jpg.tar.gz tar -cjf jpg.tar.bz2 *.jpg //将目录里所有jpg文件打包成jpg.tar后,并且将其用bzip2压缩,生成一个bz...
1:tar -xbfp 20 /dev/ntape/tape0 2:tar xbfp 20 /dev/ntape/tape0 3:tar -xb 20 -f /dev/ntape/tape0 -p 这三个命令是等效的 ,但是 tar命令不再建议在1这样的一串选项(xbfp)前使用 -, -的应用范围应该是类似于3这样的命令环境中 ,也就是参数分开使用的情况,连续无分隔参数...