[root@Linux1 ~]# tar -tvf back.tar # List all files in archive.tar verbosely. 例4: 对比加 v 的效果 [root@Linux1 ~]# tar -xf back.tar [root@Linux1 ~]# tar -xvf back.tar boot/grub/ boot/grub/splash.xpm.gz tar 归档+压缩 语法:tar czvf newfile.tar.gz SOURCE 语法:tar czvf ...
而且不管文件列表是以命令行形式给出或是通过-T选项指定的;NUMBER 值默认为1--sparse-version=MAJOR[.MINOR]设置所用的离散格式版本(隐含--sparse)-S,--sparse高效处理离散文件重写控制:-k, --keep-old-files don't replace existing files when extracting,treat them as errors--keep-directory-symlink ...
而且不管文件列表是以命令行形式给出或是通过-T选项指定的;NUMBER 值默认为1--sparse-version=MAJOR[.MINOR]设置所用的离散格式版本(隐含--sparse)-S,--sparse高效处理离散文件重写控制:-k, --keep-old-files don't replace existing files when extracting,treat them as errors--keep-directory-symlink ...
而且不管文件列表是以命令行形式给出或是通过 -T 选项指定的;NUMBER 值默认为 1 --sparse-version=MAJOR[.MINOR] 设置所用的离散格式版本(隐含 --sparse) -S, --sparse 高效处理离散文件 重写控制: -k, --keep-old-files don't replace existing files when extracting, treat them as errors --keep-di...
restore individual files from the archive. Examples: tar -cf archive.tar foo bar # Create archive.tar from files foo and bar. 创建存档 tar -tvf archive.tar # List all files in archive.tar verbosely.列出所有文件 tar -xf archive.tar # Extract all files from archive.tar. 从archive.tar提取...
To extract all files in the /tmp directory from the archive file on the /dev/rmt2 tape device and use the time of extraction as the modification time, type the following: tar -xm -f/dev/rmt2 /tmp To display the names of the files in the out.tar disk archive file from the curren...
重写控制:-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保留已存在目录的元数据--overwrite 解压时重写...
times in the first place (METHOD='system') --delay-directory-restore delay setting modification times and permissions of extracted directories until the end of extraction --group=NAME force NAME as group for added files --mode=CHANGES force (symbolic) mode CHANGES for added files ...
##UntarfilesinspecifiedDirectory## #tar-xvfpublic_html-14-09-12.tar-C/home/public_html/videos/ /home/public_html/videos/ /home/public_html/videos/views.php /home/public_html/videos/index.php /home/public_html/videos/logout.php /home/public_html/videos/all_categories.php ...
the files in the archive--sort=ORDER directory sorting order: none (default), name orinodeHandling 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 ...