TAR(1) | tar | TAR(1) |
tar - tar 檔案檔案管理程式的 GNU 版本。
tar <操作引數> [選項]
操作引數:
[-]A --catenate --concatenate [-]c --create [-]d --diff --compare [-]r --append [-]t --list [-]u --update [-]x --extract --get --delete
常用選項:
-C, --directory 目錄 -f, --file 檔案 -j, --bzip2 -J, --xz -p, --preserve-permissions -v, --verbose -z, --gzip
所有選項:
[ -a, --auto-compress ] [ --add-file 檔案 ] [
--anchored ] [ --atime-preserve ] [ -b,
--blocking-factor N ] [ -B, --read-full-records ] [
--backup[=備份型別] ] [
--block-compress ] [ -C, --directory 目錄 ]
[ --checkpoint ] [ --delay-directory-restore ] [
--exclude 檔案或目錄 ] [
--exclude-caches ] [ --exclude-caches-all ] [
--exclude-caches-under ] [ --exclude-tag 檔案 ] [
--exclude-tag-all 檔案 ] [ --exclude-tag-under
檔案 ] [ -f, --file
[主機名:]檔案 ] [ -F,
--info-script 檔案, --new-volume-script
檔案 ] [ --force-local ] [ --format
格式 ] [ -g, --listed-incremental 快照
] [ -G, --incremental ] [ --group 組 ] [
-h, --dereference ] [ --help ] [ -i,
--ignore-zeros ] [ -I, --use-compress-program
程式 ] [ --ignore-case ] [ --ignore-command-error
] [ --ignore-failed-read ] [ --index-file 檔案 ] [
-j, --bzip2 ] [ -J, --xz ] [ -k,
--keep-old-files ] [ -K, --starting-file
檔案 ] [ --keep-newer-files ] [ -l,
--check-links ] [ -L, --tape-length N ] [ --lzip
] [ --lzma ] [ --lzop ] [ -m, --touch,
--modification-time ] [ -M, --multi-volume ] [
--mode 許可權 ] [ --mtime 日期 ]
[ -N, --after-date 日期, --newer
日期 ] [ --newer-mtime 日期 ] [
--no-anchored ] [ --no-auto-compress ] [
--no-delay-directory-restore ] [ --no-ignore-case ] [
--no-ignore-command-error ] [ --no-overwrite-dir ] [
--no-quote-chars ] [ --no-recursion ] [
--no-same-permissions ] [ --no-unquote ] [
--no-wildcards ] [ --no-wildcards-match-slash ] [
--null ] [ --numeric-owner ] [ -o,
--old-archive, --portability, --no-same-owner ] [
-O, --to-stdout ] [ --occurrence 次數 ] [
--one-file-system ] [ --overwrite ] [ --overwrite-dir ]
[ --owner 使用者 ] [ -p,
--same-permissions, --preserve-permissions ] [ -P,
--absolute-names ] [ --pax-option
關鍵字列表 ] [ --posix ] [
--preserve ] [ --quote-chars 字串 ] [
--quote-style 風格 ] [ -R, --block-number ]
[ --record-size 位元組數 ] [
--recursion ] [ --recursive-unlink ] [ --remove-files ]
[ --restrict ] [ --rmt-command 命令 ] [
--rsh-command 命令 ] [ -s, --same-order,
--preserve-order ] [ -S, --sparse ] [
--same-owner ] [ --show-defaults ] [
--show-omitted-dirs ] [ --show-transformed-names,
--show-stored-names ] [ --strip-components
目錄層數 ] [ --suffix 字尾 ] [
-T, --files-from 檔案 ] [ --test-label ] [
--to-command 命令 ] [ --transform
sed表示式 ] [ --totals ] [ -U,
--unlink-first ] [ --unquote ] [ --utc ] [ -v,
--verbose ] [ -V, --label 名稱 ] [
--version ] [ --volno-file 檔案 ] [ -w,
--interactive, --confirmation ] [ -W, --verify ]
[ --wildcards ] [ --wildcards-match-slash ] [ -X,
--exclude-from 檔案 ] [ -z, --gzip,
--gunzip, --ungzip ] [ -Z, --compress,
--uncompress ] [ -[0-7][lmh] ]
這是tar的GNU版本的手冊頁。 tar是一個用於儲存或提取tar檔案的程式。 tar檔案可放在磁碟中, 也可以存為普通檔案。 tar 的第一個引數必須是操作引數A、c、d、r、t、u、x 中的一個, 引數後面可跟著任意可選選項。 tar的最後一個引數是你要處理的檔案或目錄的名字。 如果你指定了一個目錄, 該目錄的所有子目錄都將被加入存檔。
注意: 當壓縮或提取的時候, 壓縮型別選項常常是不必需的, 因為tar會根據檔案的字尾自動選擇壓縮型別。
v7 - Unix V7 oldgnu - GNU tar <=1.12 gnu - GNU tar 1.13 ustar - POSIX.1-1988 posix - POSIX.1-2001
排除列在指定檔案中的檔案
GNU世界的人, 通常不喜歡man手冊, 而是寫文件代替之。 tar的維護者也是如此。 所以, 這個man手冊頁可能會不完全, 或者不夠新, 它被包含在Gentoo的portage樹中, 因為man是一個非常好的工具:)。 這個man手冊頁最初取自Debian Linux, 從那時起已在這裡被很好地更新。
請透過 http://bugs.gentoo.org/ 報告Bug。 翻譯問題請聯絡譯者或到 https://github.com/lidaobing/manpages-zh/ 提交問題
Debian Linux http://www.debian.org/ Mike Frysinger <vapier@gentoo.org>
CMPP 中文手冊頁計劃 http://cmpp.linuxforum.net (2001/08/08) Saigut <gosaigut@gmail.com> (2013/11/09)
2014/10/04
本頁面中文版由中文
man 手冊頁計劃提供。
中文 man
手冊頁計劃:https://github.com/man-pages-zh/manpages-zh
Mar 2010 | GNU |