GNU 'tar' saves many files together into a single tape or disk archive, and can 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 archi...
[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 ...
例3:不解包,查看 tar 中的内容: [root@xuegod63 ~]# tar -tvf back.tar # List all files in archive.tar verbosely. ## 例 4:对比加 v 的效果 root@xuegod63 ~]# tar -xf back.tar [root@xuegod63 ~]# tar -xvf back.tar boot/grub/ boot/grub/splash.xpm.gz tar 归档+压缩 语法:tar czv...
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.主操作模式: -A, --catenate, --concatenate 追加 tar 文件至归档 -c, --create 创建一个新归档 -...
GNU `tar' saves many files together into a single tape or disk archive, and can 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 ...
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提取所有文件。
tar -tvf archive.tar # List all files in archive.tar verbosely.tar -xf archive.tar # Extract all files from archive.tar.主操作模式:-A, --catenate, --concatenate 追加 tar 文件至归档-c, --create 创建一个新归档-d, --diff, --compare 找出归档和文件系统的差异--delete 从归档(非磁带!)...
tar -tvf archive.tar # List all files in archive.tar verbosely. 详细列出archive.tar中的所有文件。 tar -xf archive.tar # Extract all files from archive.tar. 从archive.tar解压所有文件。 主操作模式: -A, --catenate, --concatenate 追加 tar 文件至归档 ...
tar -tvf archive.tar # List all files in archive.tar verbosely. tar -xf archive.tar # Extract all files from archive.tar. Main operation mode: -A, --catenate, --concatenate append tar files to an archive -c, --create create a new archive ...
Create a new archive. -r Add the specifiedfileto end of the achive. -t List the names of the files in the archive to standard output. -u Update the specifiedfilein the archive if it has been modified since last written to the archive or addfileto the archive if it is not in the ...