Linux/Unix 下打包工具 tar 1.24 发布。

Tar 1.24 特性:
- The
--full-time option - More reliable directory traversal when creating archives
--dereference consistency- Extracts symlink attributes, such as last-modified time and link permissions, if the operating system supports this
- Fixed spurious error diagnostics on broken pipe
- Fixed
--remove-files bug (previous version would
fail to remove a directory which contained symlinks to another
files within that directory) - Accepts the
--label option used together with --update - The options
--record-size and --tape-length (-L ) accept size suffixes - Fixed dead loop on extracting existing symlinks with the
-k option
Tar 命令:
[语法]:
- tar -c[vwfbL] [设备] [块] 文件…
- tar -r[vwfbL] [设备] [块] 文件…
- tar -t[vfL] [设备] [文件...]
- tar -u[vwfbL] [设备] [块] 文件…
- tar -x[lmovwfL] [设备] [文件...]
命令参数:
- r 附加方式归档
- x 抽取文件
- t 显示文件
- u 附加方式归档,同时删除旧版文件
- c 建立新档案文件
- v 显示所处理的文件名
- w 处理文件前,要求用户确认
- f 文件名 使用指定文件名作为档案文件
- bn 每次读写 n 块,缺省值为1,最大值为20
- m 将新的文件修改时间设为获取时的时间
- o 获取出来的文件以下达tar指令的UID和GID存储
[例子]:
- tar cvf file.tar *
- tar tvf file.tar
查看发布公告
点击进入 Tar 项目主页 |