详细参数 tar--helpUsage:tar[OPTION...][FILE]...GNU'tar'savesmanyfilestogetherintoasingletapeordiskarchive,andcanrestoreindividualfilesfromthearchive.Examples:tar-cfarchive.tarfoobar# Create archive.tar from files foo and bar.tar-tvfarchive.tar# List all files in archive.tar verbosely.tar-xfarchi...
-r, --append append files to the end of an archive -t, --list list the contents of an archive --test-label test the archive volume label and exit -u, --update only append files newer than copy in archive -x, --extract, --get extract files from an archive Operation modifiers: --...
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 arc...
List all files in an archive.tar verbosely: tar -tvf archive.tar Example: [root@localhost TAR]# tar -tvf file.tar -rw-r--r-- root/root 2770 2014-02-07 22:37 file1.txt -rw-r--r-- root/root 887 2014-02-07 22:38 file2.txt 2, -c, –create 创建新的归档文件 3, -t, –...
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 文件至归档 ...
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 创建一个新归档...
List all files in an archive.tar verbosely: 1 tar-tvf archive.tar Example: 1 2 3 [root@localhost TAR]# tar -tvf file.tar -rw-r--r-- root/root2770 2014-02-07 22:37 file1.txt -rw-r--r-- root/root887 2014-02-07 22:38 file2.txt ...
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 ...
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 创建一个新归档 --delete 从归档(非磁带!)中删除 -d, --diff, --compare 找出归档和...
tar -tvf archive.tar # List all files in archive.tar verbosely. tar -xf archive.tar # Extract all files from archive.tar. -t, --list list the contents of an archive -t参数可以列出tar包里的所有文件: [oracle@goolen test]$ tar -tvf test.tar.gz ...