GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
BSDTAR(1) FreeBSD General Commands Manual BSDTAR(1)

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 ?ؤκǽ??Υ??ץ??????ϡ????ΰ????ˤ????⡼?ɤλؼ??Ǥ?:

???ꤵ?줿?????ƥ????ޤ????????????????????֤????????ޤ???
?Ȼ??Ƥ??ޤ????????????????ȥ??ϥ????????֤??ɲä????ޤ??? ?ʤ????????̾??ե????????󰵽̥????????֤??Ф??ƤΤ?ư??ޤ??? -f ???ץ???????ɬ?פǤ???
ɸ?????Ϥ˥????????????ƤΥꥹ?Ȥ????Ϥ??ޤ???
?Ȼ??Ƥ??ޤ????????????????ȥ????ѹ????郎?????????????????б????륨???ȥ? ?Τ??Τ????⿷?????????Τߡ??ɲä????ޤ??? ?ʤ????????̾??ե????????󰵽̥????????֤??Ф??ƤΤ?ư??ޤ??? -f ???ץ???????ɬ?פǤ???
?????????֤????ǥ???????Ÿ?????ޤ??? ?⤷Ʊ̾?Υե????뤬?????????????? 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 ?ϥ????????֤Υե????ޥåȤ??̤Τ??Τ??Ѵ??????٤˻Ȥ????Ȥ??????ޤ???
blocksize
?ơ??ץɥ饤?֤? I/O ???Ф????֥??å???????????512 ?Х??ȥ쥳????ñ?̤? ???ꤷ?ޤ??? ???̤ˡ??ܰ????ϥơ??ץɥ饤?֤??ɤ߽񤭤????????ǥե????ȥ֥??å????????? ???ꤴ??????Ū?? 20 ?쥳???? (10240 ?Х???) ???Ѥ??ʤ??????Τߤ?ɬ?פȤʤ??ޤ???
directory
c ?????? r ?⡼?ɤˤ????ơ?³???ե????????ɲä??????ˡ??ǥ??쥯?ȥ??? ?ѹ????ޤ??? x ?⡼?ɤˤ????Ƥϡ??????????֤򥪡??ץ󤷤??塢?????ȥ??򥢡??????֤??? Ÿ?????????˥ǥ??쥯?ȥ????ѹ????ޤ???
(-W check-links)
(c ?????? r ?⡼?ɤΤ?) ?ƥե??????ؤΤ??٤ƤΥ??󥯤??????????֤????ʤ??ʤ顢 ?ٹ????å???????ȯ?Ԥ??ޤ???
pattern (-W exclude=pattern)
???ꤷ???ѥ??????˥ޥå??????ե????????ǥ??쥯?ȥ??򡢽??????ޤ????? ?ʤ??????ϥ??ޥ??ɥ饤???ǻ??ꤷ???ѥ????????ե?????̾??????ͥ?褷?ޤ???
format (-W format=format)
(c ?⡼?ɤΤ?) ???????륢???????֤Υե????ޥåȤ????ꤹ???Τ??Ѥ??ޤ??? ???ݡ??Ȥ??????ե????ޥåȤˤϡ? “cpio”, “pax”, “shar”, “ustar” ???????ޤ??? ?ޤ?¾?Υե????ޥåȤ⥵?ݡ??Ȥ????Ƥ??뤫?⤷???ޤ????? ???ߥ??ݡ??Ȥ????Ƥ????ե????ޥåȤξܺ٤ʾ????ˤĤ??Ƥϡ? libarchive-formats(5) ?򻲾Ȥ??Ƥ?????????
file
???ꤵ?줿?ե??????????ɤ߽񤭤??륢???????֤ˤ??ޤ??? ?ե?????̾?? - ?ˤ????С?ɸ?????Ϥޤ???ɸ?????Ϥˤʤ??ޤ??? ???ꤷ?ʤ????硢?ǥե????ȤΥơ??ץǥХ????????Ѥ????ޤ? (FreeBSD ?ξ??硢?ǥե????ȤΥơ??ץǥХ????? /dev/sa0) ??
(-W fast-read)
(x ?????? t ?⡼?ɤΤ?) ?ƥѥ??????ޤ??ϥե?????̾???ڥ????ɤ˥ޥå????륨???ȥ??Τ????? ?ǽ??Υ????????֥????ȥ???????Ÿ???ޤ??ϥꥹ??ɽ?????ޤ??? ?ƥѥ??????ޤ??ϥե?????̾?˥ޥå??????С??????˽?λ???ޤ??? Ʊ̾?Υ????ȥ꤬ʣ??¸?ߤǤ????ޤ??????Ȥ??Ƹ??Υ????ȥ꤬?????????Υ????ȥ??? ???񤭤????٤ˡ??ǥե????ȤǤϥ????????֤Ͼ??˺Ǹ??ޤ??ɤ߹??ޤ??ޤ??? ?ܥ??ץ?????????ǽ?κ?Ŭ???ΰ٤??󶡤????Ƥ??ޤ???
(c ?????? r ?⡼?ɤΤ?) ???ޥ??ɥ饤???ǻ??ꤵ?줿?????ܥ??å????󥯤????פ??ޤ??? ???󥯼??ȤǤϤʤ??????󥯤??оݤ򥢡??????֤??ޤ???
(c ?????? r ?⡼?ɤΤ?) -L ??Ʊ????̣?Ǥ???
pattern (-W include=pattern)
???ꤷ???ѥ??????˥ޥå??????ե??????ޤ??ϥǥ??쥯?ȥ??Τ߽??????ޤ??? ?ʤ????λ????????⡢ --exclude ?ˤ??????꤬ͥ?褷?ޤ??? ?????????????ʤ????С??ǥե????Ȥ????ƤΥ????ȥ꤬?????????ޤ??? ???? --include ???ץ??????ϡ??????????֤??ե??륿???󥰤????Τ??ä?ͭ?ѤǤ??? ???Ȥ??ơ????Υ??ޥ???
tar -c -f new.tar --include='*foo*' @old.tgz
?Ǥϡ? old.tgz ?Υ????ȥ??Τ?????ʸ???? ‘foo’ ???ޤ??Ǥ??????Τ??????ޤࡢ???????????????? new.tar ?????????ޤ???
(c ?⡼?ɤΤ?) ???????륢???????֤? bzip2(1) ?ǰ??̤??ޤ??? Ÿ???ޤ??ϥꥹ?ȥ⡼?ɤǤϡ??ܥ??ץ???????̵?뤵???ޤ??? ?ʤ?¾?? tar ?????Ȱۤʤꡢ?ܼ????Ǥϥ????????֤??ɤ߹????ݤˤϡ?bzip2 ???̤? ??ưŪ??Ƚ?̤??ޤ???
(x ?⡼?ɤΤ?) ??¸?Υե??????????񤭤??ޤ????? ?äˡ??????????????? 2 ???ʾ帽?????ե??????Ǥ??äƤ⡢???Υ??ԡ??? ?????????Υ??ԡ??????񤭤??뤳?ȤϤ??ޤ?????
(c ?????? r ?⡼?ɤΤ?) ???ƤΥ????ܥ??å????󥯤????פ??ޤ??? ?̾?????ܥ??å????󥯤Ϥ??Τޤޥ????????֤????ޤ??? ?ܥ??ץ??????ˤ??ꡢ???󥯤??оݤ????????˥????????֤????ޤ???
???Ķ??ǻ??ꤵ?????ʤ顢?????? --check-links ???ץ??????Τ?????Ʊ?????Ǥ??? ?????ʤ????С????顼??ɽ???????ޤ??? GNU tar ?ȸߴ????Τ??뿶?񤤤???˾?????桼???????????? --one-file-system ???ץ??????????Ѥ????٤??Ǥ???
(x ?⡼?ɤΤ?) ?ե????빹????????Ÿ?????ޤ????? ?ǥե????ȤǤϡ??????????ϥ????????֤?Ǽ???????Ƥ????????????ꤵ???ޤ???
(c, r, u ?⡼?ɤΤ?) ?ǥ??쥯?ȥ????Υե????????Ƶ?Ū?˥????????֤??ޤ?????
(-W nodump)
(c ?????? r ?⡼?ɤΤ?) nodump ?ե??????ե饰??Ω?ä??ե??????򥹥??åפ??ޤ???
(x, t ?⡼?ɤΤ?) Ÿ?? (-x) ?⡼?ɤǤϡ??ե??????ϥǥ???????Ÿ?????줺??ɸ?????Ϥ? ?񤭹??ޤ??ޤ??? ?ꥹ?? (-t) ?⡼?ɤǤϡ??ե??????ꥹ?Ȥ??̾???ɸ?????ϤǤʤ?ɸ?२?顼?? ?񤭹??ޤ??ޤ???
(x ?⡼?ɤΤ?) ?桼???ȥ??롼?פ򡢥????????֤????ꤷ?????ΤǤϤʤ??? ?ܥץ??????????¹Ԥ??Ƥ????桼???Τ??Τ????Ѥ??ޤ??? ?ʤ??????? -p ?????ꤷ?ʤ??Ȱ?̣???????ޤ????? ?ޤ??ܥץ????????? root ?桼?????¹Ԥ??Ƥ???ɬ?פ??????ޤ??? ???ξ??硢?ե??????⡼?ɤȥե饰?ϥ????????֤????ꥹ?ȥ??????ޤ????? ACL ????ͭ?Ԥξ??????˴??????ޤ???
?ѥ?̾???ݻ????ޤ??? ?ǥե????ȤǤϡ??????????֤κ?????Ÿ????ξ???ˤ????ơ????Хѥ?̾ (/ ʸ???? ?ϤޤäƤ???????) ?κǽ??Υ????å????ϼ??????????ޤ??? ?ޤ? tar ?ϡ??ѥ?̾?? .. ???ޤ??Ǥ????ꡢ?оݥǥ??쥯?ȥ??򥷥??ܥ??å????󥯤??ѹ????? ?????????֥????ȥ???Ÿ???????Τ????ݤ??ޤ??? ?ܥ??ץ??????Ϥ??ο??񤤤????????ޤ???
(x ?⡼?ɤΤ?) ?ե??????ѡ??ߥå????????ݻ????ޤ??? ?????????֤????ƥ????ƥ???Ÿ???????ݡ???ǽ?ʤ??С???ͭ?ԡ??ե??????⡼?ɡ? ?ե??????Υե饰?? ACL ???ޤࡢ???ƤΥѡ??ߥå????????ꥹ?ȥ????褦?Ȥ??ޤ??? ?ǥե????ȤǤϡ??????????????ե??????ν?ͭ?Ԥ? tar ???¹Ԥ????桼???Ȥʤꡢ?????????????̾??ե??????˴ؤ??Ƥϥե??????⡼?ɤ? ?ꥹ?ȥ????졢?ޤ????????ʳ??Υ????פΥ????ȥ??ϥǥե????ȤΥѡ??ߥå??????? ?ʤ??ޤ??? ?⤷ tar ?? root ???¹Ԥ??????硢 -o ???ץ??????????ꤷ?ʤ??¤ꡢ?ǥե????Ȥǽ?ͭ?Ԥ??ꥹ?ȥ??????ޤ???
filename
(c ?⡼?ɤΤ?) ?????????֤??٤??ե?????̾?? filename ?????ɤ߹??ߤޤ??? ?ե?????̾?ϲ??ԤǶ??ڤ????ޤ??? ???̤?̾???Ǥ??? “-C” ?ˤ??ꡢ???????ȥǥ??쥯?ȥ??򤽤μ??ιԤǻ??ꤵ?줿?ǥ??쥯?ȥ????ѹ????ޤ???
(x ?⡼?ɤΤ?) ?ե??????????????????ˡ????ä??????????ޤ??? ?ܥ??ץ?????̵???Ǥϡ? tar ?ϴ?¸?Υե??????????񤭤?????¸?Υϡ??ɥ??󥯤??ݻ????ޤ??? ?ܥ??ץ??????ˤ??ꡢ??¸?Υϡ??ɥ??󥯤??˴????졢Ʊ?ͤˡ? Ÿ?????????ե??????ξ????˱ƶ????ڤܤ??????ܥ??å????󥯤??˴??????ޤ???
??Ĺ?ʽ??Ϥ?ɽ?????ޤ??? ?????ڤ?Ÿ???⡼?ɤˤ????ơ? tar ?ϥ????????֤˽񤭹??ߡ??ޤ??ϥ????????֤????ɤ߽Ф????ƥե???????̾???? ?ꥹ??ɽ?????ޤ??? ?ꥹ?ȥ⡼?ɤˤ????ơ? tar ?? ls(1) ?˻??????Ϥ?ɽ?????ޤ??? -v ???ץ????????ɲä??뤳?Ȥǡ??ղ?Ū????????ɽ?????ޤ???
longopt=value
???󥰥??ץ????? (-- ?????Ԥ???) ?ϡ? getopt_long(3) ?ؿ????Ѱդ????Ƥ??륷???ƥ??ǤΤߡ?ľ?ܥ??ݡ??Ȥ????ޤ??? ???δؿ??򥵥ݡ??Ȥ??ʤ??????ƥ??Ǥϡ??? -W ???ץ????????𤷤ơ????󥰥??ץ????????Ȥ????Ȥ??????ޤ???
???????????????Ф?????ǧ???????ޤ???
filename
???ꤵ?줿?ե????뤫???????ѥ??????Υꥹ?Ȥ??ɤ߹??ߤޤ??? ?????μ??갷???˴ؤ????????ˤĤ??Ƥ? --exclude ?򻲾Ȥ??Ƥ?????????
(c ?⡼?ɤΤ?) ???????륢???????֤? bzip2(1) ?ǰ??̤??ޤ??? Ÿ???ޤ??ϥꥹ?ȥ⡼?ɤǤϡ??ܥ??ץ???????̵?뤵???ޤ??? ?ʤ?¾?? tar ?????Ȱۤʤꡢ?ܼ????Ǥϥ????????֤??ɤ߹????ݤˤϡ?bzip2 ???̤? ??ưŪ??Ƚ?̤??ޤ???
(c ?⡼?ɤΤ?) ???????륢???????֤? gzip(1) ?ǰ??̤??ޤ??? Ÿ???ޤ??ϥꥹ?ȥ⡼?ɤǤϡ??ܥ??ץ???????̵?뤵???ޤ??? ?ʤ?¾?? tar ?????Ȱۤʤꡢ?ܼ????Ǥϥ????????֤??ɤ߹????ݤˤϡ?gzip ???̤? ??ưŪ??Ƚ?̤??ޤ???

???δĶ??ѿ????? tar ?μ¹Ԥ˴ط????ޤ?:
???Ѥ??????????롣 ?ܺ٤? environ(7) ?򻲾ȡ?
???δĶ??ѿ??????????????ȡ? -l ???ץ??????? ISO/IEC 9945-1:1996 (“POSIX.1”) ?˽??äƲ??ᤵ???ޤ???
?ǥե????ȥơ??ץǥХ????? -f ???ץ??????Ϥ?????̵?뤷?ޤ???
???դ?ɽ???????ݤ˻??Ѥ??륿???ॾ?????? ?ܺ٤? environ(7) ?򻲾ȡ?

/dev/sa0
?Ķ??ѿ??? -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

?????⡼?ɤˤ????ơ??????????֤??????ե??????ȥǥ??쥯?ȥ??Υꥹ?Ȥˤϡ? -Cfoo/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 ?Ͼ??˽Ҥ٤??????????ƥ??????å????Ԥ??ʤ??褦?ˤʤꡢ???Хѥ??? .. ???ޤ??ե????롢?ڤ?¾?Υǥ??쥯?ȥ??ؤΥ????ܥ??å????󥯤? Ÿ???Ǥ????褦?ˤʤ??ޤ???

bzip2(1), cpio(1), gzip(1), mt(1), pax(1), shar(1), libarchive(3), libarchive-formats(5), tar(5)

???ߡ?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 ?ʤ?) ?? @- ?ˤ????Ѵ??????ȡ??ϡ??ɥ??󥯾??󤬼??????ޤ? (?????ϰۤʤ륢???????֥ե????ޥåȤǥϡ??ɥ??󥯾???????Ǽ???Ƥ??뤳?Ȥ??餯?? ?????η??̤Ǥ?)??

?ΰդ˥ɥ????????Ȳ????Ƥ??ʤ???¿???Υ??硼?ȥ??ץ??????????????ˤʤ? ???󥰥??ץ????󤬤????ޤ???

April 13, 2004 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.