tar
—
?ơ??ץ????????֤??????
tar
[bundled-flags
⟨args⟩] [⟨file⟩ |
⟨pattern⟩ ...] tar
{-c
} [options]
[files | directories]
tar
{-r
|
-u
} -f
archive-file [options]
[files | directories]
tar
{-t
|
-x
} [options]
[patterns]
tar
?ϥ????????֥ե????륹?ȥ???κ??????????ޤ???
?ǽ??νե??????Ǥ?
“?ޤȤ?” (bundled)
???ץ???????????ɽ???Ƥ??ޤ???
???λ???ˡ?ϡ??????ޤǤμ????Ȥθߴ????Τ??????????Ƥ??ޤ???
?ܺ٤ϸ??ҤΡָߴ????פȤ??Ƥ?????????
????¾?νե????ब?????ޤ???????ˡ??ɽ???Ƥ??ޤ???
tar
?ؤκǽ??Υ??ץ??????ϡ????ΰ????ˤ????⡼?ɤλؼ??Ǥ?:
-c
- ???ꤵ?줿?????ƥ????ޤ????????????????????֤????????ޤ???
-r
-c
?Ȼ??Ƥ??ޤ????????????????ȥ??ϥ????????֤??ɲä????ޤ???
?ʤ????????̾??ե????????̥????????֤??Ф??ƤΤ?ư??ޤ???
-f
???ץ???????ɬ?פǤ???
-t
- ɸ?????Ϥ˥????????????ƤΥꥹ?Ȥ????Ϥ??ޤ???
-u
-r
?Ȼ??Ƥ??ޤ????????????????ȥ????ѹ????郎?????????????????б????륨???ȥ?
?Τ??Τ????⿷?????????Τߡ??ɲä????ޤ???
?ʤ????????̾??ե????????̥????????֤??Ф??ƤΤ?ư??ޤ???
-f
???ץ???????ɬ?פǤ???
-x
- ?????????֤????ǥ???????Ÿ?????ޤ???
?⤷Ʊ̾?Υե????뤬?????????????? 2
???ʾ帽?줿???硢???줾???Υ??ԡ???
Ÿ?????졢???Τ??Τ??????????Υ??ԡ?????????
(?ִ?) ???ޤ???
-c
, -r
,
-u
?⡼?ɤˤ????ơ????ꤵ?줿?ե??????ޤ??ϥǥ??쥯?ȥ??ϡ????ޥ??ɥ饤????
???ꤵ?줿???˥????????֤??ɲä????ޤ???
?ǥե????ȤǤϡ??ƥǥ??쥯?ȥ????Υե??????⥢???????֤????ޤ???
Ÿ???ޤ??ϥꥹ?ȥ⡼?ɤˤ????ơ??????????֤??ץ?????
???ޥ??ɥ饤?????Τ??ɤ߹??ޤ졢???Ϥ????ޤ???
???ޥ??ɥ饤???Υѥ?̾?ޤ??ϥѥ??????ϡ??????????????ν????оݤȤʤ?
?????ƥ????ޤ???
?ѥ??????ϥ??????????Υ????֥ѥ??????Ǥ??ꡢXXXX
??ʸ?????Ƥ??ޤ???
???????Ƥ??ʤ????ץ??????ϡ????Ƥ??????⡼?ɤ?Ŭ?Ѳ?ǽ?Ǥ???
@
archive
- (c ?????? r ?⡼?ɤΤ?)
???ꤵ?줿?????????֤??????ץ졢???Υ????ȥ꤬???ߤ?
?????????֤??ɲä????ޤ???
??ñ?????Ȥ??ơ?
tar
-c
-f
- newfile
@
original.tar
?Ǥϥե????? newfile ?ȡ?
original.tar
?????ƤΥ????ȥ????ޤࡢ???????????????֤?ɸ?????Ϥ˽Ф??ޤ???
?о?Ū?ˡ?
tar
-c
-f
- newfile
original.tar
?Ǥϡ????ĤΥ????ȥ??Τߤο??????????????֤????????ޤ???
?ޤ???
tar
-czf
-
--format
pax
@
-
?Ǥ?ɸ?????Ϥ??饢???????֤??ɤ߹???
(?ե????ޥåȤϼ?ưŪ??Ƚ??)??
gzip ?ǰ??̤??? pax
?ե????ޥåȥ????????֤??Ѵ????ơ?ɸ?????Ϥ˽??Ϥ??ޤ???
???Τ褦?ˡ? tar
?ϥ????????֤Υե????ޥåȤ??̤Τ??Τ??Ѵ??????٤˻Ȥ????Ȥ??????ޤ???
-b
blocksize
- ?ơ??ץɥ饤?֤? I/O
???Ф????֥??å???????????512
?Х??ȥ쥳????ñ?̤? ???ꤷ?ޤ???
???̤ˡ??ܰ????ϥơ??ץɥ饤?֤??ɤ߽????????ǥե????ȥ֥??å?????????
???ꤴ??????Ū?? 20 ?쥳???? (10240 ?Х???)
???Ѥ??ʤ??????Τߤ?ɬ?פȤʤ??ޤ???
-C
directory
- c ?????? r
?⡼?ɤˤ????ơ?³???ե????????ɲä??????ˡ??ǥ??쥯?ȥ???
?ѹ????ޤ??? x
?⡼?ɤˤ????Ƥϡ??????????֤??ץ??塢?????ȥ????????֤???
Ÿ?????????˥ǥ??쥯?ȥ????ѹ????ޤ???
--check-links
(-W
check-links
)
- (c ?????? r ?⡼?ɤΤ?)
?ƥե??????ؤΤ??٤ƤΥ????????????֤????ʤ??ʤ顢
?ٹ????å???????ȯ?Ԥ??ޤ???
--exclude
pattern (-W
exclude
=pattern)
- ???ꤷ???ѥ??????˥ޥå??????ե????????ǥ??쥯?ȥ????????ޤ?????
?ʤ??????ϥ??ޥ??ɥ饤???ǻ??ꤷ???ѥ????????ե?????̾??????ͥ?褷?ޤ???
--format
format (-W
format
=format)
- (c ?⡼?ɤΤ?)
???????륢???????֤Υե????ޥåȤ????ꤹ???Τ??Ѥ??ޤ???
???ݡ??Ȥ??????ե????ޥåȤˤϡ?
“cpio”, “pax”, “shar”,
“ustar” ???????ޤ???
?ޤ?¾?Υե????ޥåȤ⥵?ݡ??Ȥ????Ƥ??뤫?⤷???ޤ?????
???ߥ??ݡ??Ȥ????Ƥ????ե????ޥåȤξܺ٤ʾ????ˤĤ??Ƥϡ?
libarchive-formats(5)
?Ȥ??Ƥ?????????
-f
file
- ???ꤵ?줿?ե??????????ɤ߽??륢???????֤ˤ??ޤ???
?ե?????̾?? -
?ˤ????С?ɸ?????Ϥޤ???ɸ?????Ϥˤʤ??ޤ???
???ꤷ?ʤ????硢?ǥե????ȤΥơ??ץǥХ????????Ѥ????ޤ?
(FreeBSD
?ξ??硢?ǥե????ȤΥơ??ץǥХ?????
/dev/sa0) ??
--fast-read
(-W
fast-read
)
- (x ?????? t ?⡼?ɤΤ?)
?ƥѥ??????ޤ??ϥե?????̾???ڥ????ɤ˥ޥå????륨???ȥ??Τ?????
?ǽ??Υ????????֥????ȥ???????Ÿ???ޤ??ϥꥹ??ɽ?????ޤ???
?ƥѥ??????ޤ??ϥե?????̾?˥ޥå??????С??????˽?λ???ޤ???
Ʊ̾?Υ????ȥ꤬ʣ??¸?ߤǤ????ޤ??????Ȥ??Ƹ??Υ????ȥ꤬?????????Υ????ȥ???
???????٤ˡ??ǥե????ȤǤϥ????????֤Ͼ??˺Ǹ??ޤ??ɤ߹??ޤ??ޤ???
?ܥ??ץ?????????ǽ?κ?Ŭ???ΰ٤??????Ƥ??ޤ???
-H
- (c ?????? r ?⡼?ɤΤ?)
???ޥ??ɥ饤???ǻ??ꤵ?줿?????ܥ??å????????פ??ޤ???
?????ȤǤϤʤ????????оݤ??????֤??ޤ???
-h
- (c ?????? r ?⡼?ɤΤ?)
-L
??Ʊ????̣?Ǥ???
--include
pattern (-W
include
=pattern)
- ???ꤷ???ѥ??????˥ޥå??????ե??????ޤ??ϥǥ??쥯?ȥ??Τ߽??????ޤ???
?ʤ????λ????????⡢
--exclude
?ˤ??????꤬ͥ?褷?ޤ???
?????????????ʤ????С??ǥե????Ȥ????ƤΥ????ȥ꤬?????????ޤ???
???? --include
???ץ??????ϡ??????????֤??ե??륿???????Τ??ä?ͭ?ѤǤ???
???Ȥ??ơ????Υ??ޥ???
tar
-c
-f
new.tar --include='*foo*'
@
old.tgz
?Ǥϡ? old.tgz
?Υ????ȥ??Τ?????ʸ???? ‘foo’
???ޤ??Ǥ??????Τ??????ޤࡢ????????????????
new.tar ?????????ޤ???
-j
- (c ?⡼?ɤΤ?) ???????륢???????֤?
bzip2(1)
?ǰ??̤??ޤ???
Ÿ???ޤ??ϥꥹ?ȥ⡼?ɤǤϡ??ܥ??ץ???????̵?뤵???ޤ???
?ʤ?¾??
tar
?????Ȱۤʤꡢ?ܼ????Ǥϥ????????֤??ɤ߹????ݤˤϡ?bzip2
???̤? ??ưŪ??Ƚ?̤??ޤ???
-k
- (x ?⡼?ɤΤ?)
??¸?Υե????????????ޤ?????
?äˡ??????????????? 2
???ʾ帽?????ե??????Ǥ??äƤ⡢???Υ??ԡ???
?????????Υ??ԡ????????뤳?ȤϤ??ޤ?????
-L
- (c ?????? r ?⡼?ɤΤ?)
???ƤΥ????ܥ??å????????פ??ޤ???
?̾?????ܥ??å????Ϥ??Τޤޥ????????֤????ޤ???
?ܥ??ץ??????ˤ??ꡢ?????оݤ????????˥????????֤????ޤ???
-l
POSIXLY_CORRECT
???Ķ??ǻ??ꤵ?????ʤ顢??????
--check-links
???ץ??????Τ?????Ʊ?????Ǥ???
?????ʤ????С????顼??ɽ???????ޤ??? GNU tar
?ȸߴ????Τ??뿶????˾?????桼????????????
--one-file-system
???ץ??????????Ѥ????٤??Ǥ???
-m
- (x ?⡼?ɤΤ?)
?ե????빹????????Ÿ?????ޤ?????
?ǥե????ȤǤϡ??????????ϥ????????֤?Ǽ???????Ƥ????????????ꤵ???ޤ???
-n
- (c, r, u ?⡼?ɤΤ?)
?ǥ??쥯?ȥ????Υե????????Ƶ?Ū?˥????????֤??ޤ?????
--nodump
(-W
nodump
)
- (c ?????? r ?⡼?ɤΤ?) nodump
?ե??????ե饰??Ω?ä??ե????????åפ??ޤ???
-O
- (x, t ?⡼?ɤΤ?) Ÿ?? (-x)
?⡼?ɤǤϡ??ե??????ϥǥ???????Ÿ?????줺??ɸ?????Ϥ?
???ޤ??ޤ??? ?ꥹ?? (-t)
?⡼?ɤǤϡ??ե??????ꥹ?Ȥ??̾???ɸ?????ϤǤʤ?ɸ?२?顼??
???ޤ??ޤ???
-o
- (x ?⡼?ɤΤ?)
?桼???ȥ??롼?פ????????֤????ꤷ?????ΤǤϤʤ???
?ܥץ??????????¹Ԥ??Ƥ????桼???Τ??Τ????Ѥ??ޤ???
?ʤ???????
-p
?????ꤷ?ʤ??Ȱ?̣???????ޤ?????
?ޤ??ܥץ????????? root
?桼?????¹Ԥ??Ƥ???ɬ?פ??????ޤ???
???ξ??硢?ե??????⡼?ɤȥե饰?ϥ????????֤????ꥹ?ȥ??????ޤ?????
ACL ????ͭ?Ԥξ??????˴??????ޤ???
-P
- ?ѥ?̾???ݻ????ޤ???
?ǥե????ȤǤϡ??????????֤κ?????Ÿ????ξ???ˤ????ơ????Хѥ?̾
(/ ʸ???? ?ϤޤäƤ???????)
?κǽ??Υ????å????ϼ??????????ޤ???
?ޤ?
tar
?ϡ??ѥ?̾??
..
???ޤ??Ǥ????ꡢ?оݥǥ??쥯?ȥ????ܥ??å??????ѹ?????
?????????֥????ȥ???Ÿ???????Τ????ݤ??ޤ???
?ܥ??ץ??????Ϥ??ο??????????ޤ???
-p
- (x ?⡼?ɤΤ?)
?ե??????ѡ??ߥå????????ݻ????ޤ???
?????????֤????ƥ????ƥ???Ÿ???????ݡ???ǽ?ʤ??С???ͭ?ԡ??ե??????⡼?ɡ?
?ե??????Υե饰?? ACL
???ޤࡢ???ƤΥѡ??ߥå????????ꥹ?ȥ????褦?Ȥ??ޤ???
?ǥե????ȤǤϡ??????????????ե??????ν?ͭ?Ԥ?
tar
???¹Ԥ????桼???Ȥʤꡢ?????????????̾??ե??????˴ؤ??Ƥϥե??????⡼?ɤ?
?ꥹ?ȥ????졢?ޤ????????ʳ??Υ????פΥ????ȥ??ϥǥե????ȤΥѡ??ߥå???????
?ʤ??ޤ??? ?⤷ tar
?? root
???¹Ԥ??????硢 -o
???ץ??????????ꤷ?ʤ??¤ꡢ?ǥե????Ȥǽ?ͭ?Ԥ??ꥹ?ȥ??????ޤ???
-T
filename
- (c ?⡼?ɤΤ?)
?????????֤??٤??ե?????̾??
filename
?????ɤ߹??ߤޤ???
?ե?????̾?ϲ??ԤǶ??ڤ????ޤ???
???̤?̾???Ǥ??? “-C”
?ˤ??ꡢ???????ȥǥ??쥯?ȥ??μ??ιԤǻ??ꤵ?줿?ǥ??쥯?ȥ????ѹ????ޤ???
-U
- (x ?⡼?ɤΤ?)
?ե??????????????????ˡ????ä??????????ޤ???
?ܥ??ץ?????̵???Ǥϡ?
tar
?ϴ?¸?Υե???????????????¸?Υϡ??ɥ????ݻ????ޤ???
?ܥ??ץ??????ˤ??ꡢ??¸?Υϡ??ɥ????˴????졢Ʊ?ͤˡ?
Ÿ?????????ե??????ξ????˱ƶ????ڤܤ??????ܥ??å??????˴??????ޤ???
-v
- ??Ĺ?ʽ??Ϥ?ɽ?????ޤ???
?????ڤ?Ÿ???⡼?ɤˤ????ơ?
tar
?ϥ????????֤˽??ߡ??ޤ??ϥ????????֤????ɤ߽Ф????ƥե???????̾????
?ꥹ??ɽ?????ޤ???
?ꥹ?ȥ⡼?ɤˤ????ơ?
tar
??
ls(1)
?˻??????Ϥ?ɽ?????ޤ???
-v
???ץ????????ɲä??뤳?Ȥǡ??ղ?Ū????????ɽ?????ޤ???
-W
longopt=value
- ?????ץ????? (
--
?????Ԥ???)
?ϡ?
getopt_long(3)
?ؿ????Ѱդ????Ƥ??륷???ƥ??ǤΤߡ?ľ?ܥ??ݡ??Ȥ????ޤ???
???δؿ??ݡ??Ȥ??ʤ??????ƥ??Ǥϡ???
-W
???ץ????????𤷤ơ??????ץ????????Ȥ????Ȥ??????ޤ???
-w
- ???????????????Ф?????ǧ???????ޤ???
-X
filename
- ???ꤵ?줿?ե????뤫???????ѥ??????Υꥹ?Ȥ??ɤ߹??ߤޤ???
?????μ??갷???˴ؤ????????ˤĤ??Ƥ?
--exclude
?Ȥ??Ƥ?????????
-y
- (c ?⡼?ɤΤ?) ???????륢???????֤?
bzip2(1)
?ǰ??̤??ޤ???
Ÿ???ޤ??ϥꥹ?ȥ⡼?ɤǤϡ??ܥ??ץ???????̵?뤵???ޤ???
?ʤ?¾??
tar
?????Ȱۤʤꡢ?ܼ????Ǥϥ????????֤??ɤ߹????ݤˤϡ?bzip2
???̤? ??ưŪ??Ƚ?̤??ޤ???
-z
- (c ?⡼?ɤΤ?) ???????륢???????֤?
gzip(1)
?ǰ??̤??ޤ???
Ÿ???ޤ??ϥꥹ?ȥ⡼?ɤǤϡ??ܥ??ץ???????̵?뤵???ޤ???
?ʤ?¾??
tar
?????Ȱۤʤꡢ?ܼ????Ǥϥ????????֤??ɤ߹????ݤˤϡ?gzip
???̤? ??ưŪ??Ƚ?̤??ޤ???
???δĶ??ѿ????? tar
?μ¹Ԥ˴ط????ޤ?:
LANG
- ???Ѥ??????????롣 ?ܺ٤?
environ(7)
?ȡ?
POSIXLY_CORRECT
- ???δĶ??ѿ??????????????ȡ?
-l
???ץ??????? ISO/IEC
9945-1:1996 (“POSIX.1”)
?˽??äƲ??ᤵ???ޤ???
TAPE
- ?ǥե????ȥơ??ץǥХ?????
-f
???ץ??????Ϥ?????̵?뤷?ޤ???
TZ
- ???դ?ɽ???????ݤ˻??Ѥ??륿???ॾ??????
?ܺ٤?
environ(7)
?ȡ?
- /dev/sa0
TAPE
?Ķ??ѿ??? -f
???ץ???????̵?뤵???ʤ??ʤ顢
?ǥե????ȤΥơ??ץǥХ????Ǥ???
The tar
utility exits 0 on success,
and >0 if an error occurs.
???ĤΥե????? source.c ??
source.h ???ޤ??????????????
file.tar ?????????ޤ?:
tar
-czf
file.tar
source.c source.h
?????????֤ξܺ٤????ư?????ɽ?????ޤ?:
tar
-tvf
file.tar
?ǥե????ȤΥơ??ץɥ饤?֤ˤ??륢???????֤Ρ????ƤΥ????ȥ???Ÿ?????ޤ?:
tar
-x
?????⡼?ɤˤ????ơ??????????֤??????ե??????ȥǥ??쥯?ȥ??Υꥹ?Ȥˤϡ?
-C
foo/baz
?η????ǥǥ??쥯?ȥ????ѹ?̿???????????ळ?Ȥ??????ޤ???
?ޤ? @
archive-file
?η????ǥ????????֤Υ????ȥ??????????ळ?Ȥ??????ޤ???
?㤨?С????Υ??ޥ??ɥ饤??
tar
-c
-f
new.tar foo1
@
old.tgz
-C
/tmp
foo2
?Ǥϡ????????????????? new.tar
?????????ޤ??? tar
?ϥ??????ȥǥ??쥯?ȥ꤫???ե?????
foo1
???ɤ߹??ߡ????Ϥ??륢???????֤??ɲä??ޤ???
???? old.tgz
?γƥ????ȥ????ɤ߹??ߡ????????Υ????ȥ????Ϥ??륢???????֤??ɲä??ޤ???
?Ǹ??˥ǥ??쥯?ȥ??? /tmp
???ѹ????? foo2
?????Ϥ??륢???????֤??ɲä??ޤ???
?ޤȤᥪ?ץ??????????ϡ??????ޤǤμ????Ȥθߴ????Τ????˥??ݡ??Ȥ????Ƥ??ޤ???
?????ˤϡ???ʸ???????ץ??????Ǥ???Ƭʸ??
(- ʸ???ǻϤޤ??ʤ?)
??¸?ߤ??ޤ???
???????̡???ñ????³???ޤ???
???ΰ????ν????ϤޤȤᥪ?ץ?????ʸ?????Ρ??б?????Ƭʸ???ν????Ȱ??פ??Ƥ???
ɬ?פ??????ޤ??? ?㤨??
tar
tbf 32
file.tar
?Ǥϡ????ĤΥե饰 t
,
b
, ?????? f
?????ꤷ?Ƥ??ޤ??? b
??
f
?ե饰?ϡ????˰?????ɬ?פǤ??Τǡ????Ĥ??ɲå????ƥब???ޥ??ɥ饤????
ɬ?פǤ??? 32 ??
b
?ե饰???Ф????????Ǥ??ꡢ?ޤ?
file.tar ?? f
?ե饰???Ф????????Ǥ???
?⡼?ɥ??ץ??????? c, r, t, u,
x???????ӥ??ץ??????? b, f, l, m, o, v, w ?ϡ?SUSv2
?˽स?Ƥ??ޤ???
?ܿ??????????¤ˤ??뤿???ˡ?
tar
???¹Ԥ??륹?????ץȤϡ??嵭?ΤޤȤᥪ?ץ????????????Ȥ??٤??Ǥ??ꡢ
?⡼?ɥ??ץ??????? c
,
t
, x
?ˡ??ޤ????ץ??????? b
,
f
, m
,
v
, w
?????¤????٤??Ǥ???
getopt_long()
?ݡ??Ȥ??륷???ƥ??Ǥϡ?¾??
tar ?????Ȥθߴ?????
?????????ˡ??????ץ??????ѤǤ??ޤ???
?μ¤ʥ????????ƥ??ϡ? tar
???ޤ??????Υ????????֥ץ????????˶??̤β????Ǥ???
?äˡ??ٹ????줿?????????֤?
tar
???Ф??ơ??оݤȤ????ǥ??쥯?ȥ??ʳ??ξ????˥ե???????Ÿ???????褦??
?᤹?뤳?Ȥ??????ޤ???
???????????դʥ桼?????Ф??????????Ĥ?????̵???ե???????
?????????Τ˻Ȥ????Ȥ?????Ū?˲?ǽ?Ǥ???
?????????֤??ѥ桼????Ÿ?????Ƥ????????ϡ??????ƥ?????
?????????ե????뤬????????????Ū?ʲ?ǽ?????????ޤ???
?????????????????????Ĥμ??ʤ??????ޤ???
tar
?Ϥ????????Ф????ɸ浡?????????Ƥ??ޤ??????????̤Υ桼???ʤ??С?
???????ˤĤ????ΤäƤ????٤??Ǥ??礦:
- ?????????֤Υ????ȥ??ϡ????Хѥ?̾?????Ĥ??Ȥ??????ޤ???
?ǥե????ȤǤϡ?
tar
?Ϥ??????????Ф????ɸ????Ȥ??ơ????????ꥹ?ȥ????????˥ե?????̾????Ƭ?ˤ???
/ ʸ?????????????ޤ???
- ?????????֤Υ????ȥ??ϡ?
..
???ޤ??ѥ?̾?????Ĥ??Ȥ??????ޤ???
?ǥե????ȤǤϡ?
tar
?ϥѥ?̾?? ..
???ޤ??Ǥ????ե???????Ÿ?????ޤ?????
- ?????????֤Υ????ȥ??Ǥϡ??ե????????̤Υǥ??쥯?ȥ??˥ꥹ?ȥ??????褦?ˡ?
?????ܥ??å????????Ѥ??뤳?Ȥ??????ޤ???
?????????֤??̤Υǥ??쥯?ȥ????ؤ??????ܥ??å??????ꥹ?ȥ????뤳?Ȥ????衢
???Υ????Ȥäƥե??????Υǥ??쥯?ȥ??˥ꥹ?ȥ????ޤ???
???????ɤ????ᡢ.Nm
?Ǥ???????Ÿ?????????ѥ??˥????ܥ??å?????
?ޤޤ??뤫?ɤ?????Ĵ?٤ޤ???
?⤷?ѥ??κǸ??????Ǥ?
?????ܥ??å????Ǥ????С????Υ????ܥ??å????Ϻ??????졢
?????????֤????Ƥ??֤??????????ޤ???
-U
?????ꤵ???Ƥ????С?Ÿ?????????ѥ??????֤?¸?ߤ???
?????ܥ??å????⡢???٤?̵?????˺????????ޤ???
?⤷ -U
?? -P
?????ꤷ?ʤ????С? tar
?Ϥ??Τ褦?ʥ????ȥ???Ÿ???????Τ????ݤ??ޤ???
???ʤ????Ȥ????뤿?ᡢ???ѤǤ??ʤ??н褫???Υ????????֤ˤϵ????Ĥ????٤??Ǥ???
?????????֤?Ÿ?????????ˡ?
tar
-tf
filename
?Ȥ??ƥ????????֤????Ƥ?Ĵ?٤??٤??Ǥ???
tar
????¸?Υե????????????ʤ????Ȥ??ݾڤ????ˤ?
-k
???ץ????????Ȥ??٤??Ǥ???????¸?Υե????????õ?????ˤ?
-U
???ץ????????Ȥ??٤??Ǥ???
???̤ˡ??????ѥ桼?????¤ˤ??????ϡ??????????֤?Ÿ???????٤??ǤϤ????ޤ?????
?ʤ? -P
???ץ??????ˤ??ꡢ
tar
?Ͼ??˽Ҥ٤??????????ƥ??????å????Ԥ??ʤ??褦?ˤʤꡢ???Хѥ???
..
???ޤ??ե????롢?ڤ?¾?Υǥ??쥯?ȥ??ؤΥ????ܥ??å?????
Ÿ???Ǥ????褦?ˤʤ??ޤ???
???ߡ?tar ???ޥ??ɤ??Ф??? POSIX
ɸ???Ϥ????ޤ????? ISO/IEC 9945-1:1996
(“POSIX.1”) ?ˤϤ????ޤ???????
IEEE Std 1003.1-2001 (“POSIX.1”)
?Ǥ?̵???ʤ??ޤ?????
?ܼ????ǻ??ѤǤ??륪?ץ??????ϡ??Ť?
tar ?? POSIX ???͡????ߤ? pax ?? POSIX
???ͤϤ???????¸???뤤???Ĥ??? tar
??????Ĵ?????? ??ȯ?????ޤ?????
ustar ?? pax
?֤Υե??????ե????ޥå??Ѵ??ˤĤ??Ƥϡ?pax
???ޥ??ɤ? IEEE Std 1003.1-2001
(“POSIX.1”)
?ˤ??????????Ƥ??ޤ???
tar
???ޥ??ɤ? Seventh Edition Unix
?????о줷?ޤ?????
¾??¿???μ????????ꡢ????¿???ϥե??????ե????ޥåȤ???ĥ???Ƥ??ޤ???
John Gilmore ?ˤ????ѥ֥??å??ɥᥤ????????
pdtar
(1987 ǯ 11 ?)
??¿???ʱƶ????ڤܤ???GNU tar
?θ??ˤʤ??ޤ????? FreeBSD 1.0 ???ꡢGNU tar ??
FreeBSD ???ܥ????ƥ??? tar ?Ȥ???
???????ޤ??ޤ?????
?ܥ??եȥ???????
libarchive(3)
?饤?֥??????١????ˤ??????????ʺƼ????Ǥ???
POSIX ?? GNU ?? -l
???ץ??????ΰ?̣?ˤĤ??ƶ????ո????ۤˤ??Ƥ??ޤ???
?????ο??????Ԥ???¾???η??̤??????Ȥ??ä??ҳ??β?ǽ???????뤿?ᡢ
???μ????Ǥϡ? -l
???ץ??????ϸΰդ˲????Ƥ????ޤ???
-C
dir
???ץ??????ϡ??????μ????ȤϰۤʤäƤ??뤫???Τ??ޤ?????
???ƤΥ????????ֽ??Ϥϡ????Ϥ̤??Ƥ??Ƥ⡢?????????????Υ֥??å???
?Ф????ޤ???
?Ǹ??ν??ϥ֥??å????֥??å??????????礭???˥ѥǥ??????뤫?ɤ????ϡ?
?ե????ޥåȤȽ??ϥǥХ????ˤ??ä??Ѥ????ޤ???
tar ?? cpio
?ե????ޥåȤˤ????ơ????Ϥ?ɸ?????ϡ??????饯?????ǥХ?????
?⤷???ϥơ??ץɥ饤?֤Τ褦?ʥ֥??å????ǥХ????ξ??硢
???ϤκǸ??Υ֥??å??ϥ֥??å??????????礭???˥ѥǥ??????ޤ???
???Ϥ??̾??ե??????˽??????硢?Ǹ??Υ֥??å??ϥѥǥ??????ޤ?????
gzip(1)
??
bzip2(1)
???ޤ?¿???ΰ??̥??եȥ??????ϡ?
tar
?Ǻ??????줿?????????֤????????????????Υ̥??ѥǥ??ˤĤ???ʸ?????????ޤ???
Ÿ?????????˹Ԥ??ޤ???
???̤???????ǽ???????Ǽ????????Ƥ????Τǡ?
tar
-czf
- file
?ˤ??????????????̽??Ϥȡ?
tar
-cf
- file |
gzip
?ˤ??????????????̽??Ϥˤϡ????٤Ǥ????㤤???????ޤ???
?ǥե????ȤǤ?ɸ???? I/O
?ѥ??ǥ????????֤??ɤ߽????٤??Ǥ?????
????Ū?? (?????? POSIX ?Ǥ?)
¾?Τ??Τ??ᤷ?ޤ???
r
?????? u
?⡼?ɤǤϡ??????????֤??̤ǥǥ??????????̾??ե??????Ȥ???¸?ߤ???
ɬ?פ??????ޤ??? ¾?Υ????????֤?
c
?⡼?ɤ?
@archive-file
??ĥ???Ѥ??ƹ??????뤳?Ȥ??????ޤ???
@foo ?? -foo
?Ȥ??ä?̾???Υե????????????֤????ˤϡ????줾??
./@foo ?? ./-foo
?Ȥ????????ǻ??ꤹ??ɬ?פ??????ޤ???
?????⡼?ɤˤ????ơ???Ƭ?ˤ???
./ ?Ͼ??˺????????ޤ???
??Ƭ?ˤ??? / ?ϡ?
-P
???ץ??????ꤵ???ʤ??¤ꡢ???????????ޤ???
?????ڤ?Ÿ???ˤ????롢?ե??????????Τ????褤???ݡ??Ȥ?ɬ?פǤ???
?ޥ????ܥ??塼?ॢ???????֡????????¤ʥե????????Ф??륵?ݡ??ȤϤޤ??????ޤ?????
?ۤʤ륢???????֥ե????ޥå?
(tar ?? cpio ?ʤ?) ??
@
-
?ˤ????Ѵ??????ȡ??ϡ??ɥ??????????ޤ?
(?????ϰۤʤ륢???????֥ե????ޥåȤǥϡ??ɥ?????????Ǽ???Ƥ??뤳?Ȥ??餯??
?????η??̤Ǥ?)??
?ΰդ˥ɥ????????Ȳ????Ƥ??ʤ???¿???Υ??硼?ȥ??ץ??????????????ˤʤ?
?????ץ????????ޤ???