forsyth20121205-174063a80cc13 years agoHistory
86 lines · 1.8 KB · Text
RawDownload
.TH GETTAR 1.SH NAMEgettar, lstar, puttar \- tar archive utilities.SH SYNOPSIS.B gettar[.B -k] [.B -v] [.B -R][.IR name " ..."].br.B lstar.br.B puttar[.I file ...].SH DESCRIPTIONThese commands manage POSIX.1 tar archives in Inferno..PP.I Gettarreads a tar file from standard input and unpacks the contents into the current directory tree.By default,.I gettarconverts absolute path names, including names starting with.LR  # ,into names relative to the current directory; the.B -Roption extracts such names as-is.The.B -koption tells.I gettarto keep existing files rather than overwriting them with files from the archive.The.B -voption causes.I gettarto print on standard error the names of files extracted.Finally, listing one or more.I namesas arguments will extract only those files..PP.I Lstarreads a tar file from standard input and lists the files contained therein,one per line, with four space-separated fields giving the file name, modification time (in seconds since the epoch),size (in bytes), and a constant 0 (the place holder for a checksum).The format is the same as that produced by.BR "du -n -t" ..PP.I Puttarwrites a tar file to standard output that contains each.IR file ,and its substructure if it is a directory.Given no arguments,.I puttarinstead reads a list of file names from standard input and includeseach file or directory named; it does not copy directory substructure..SH EXAMPLEThe following commands create a tar file with two files.B test.band.BR srv.b :.IP.EX$ cat tarlisttest.bsrv.b$ puttar <tarlist >test.tar$ lstar <test.tartest.b 867178082 1104 0srv.b 866042662 3865 0.EE.SH SOURCE.B /appl/cmd/gettar.b.br.B /appl/cmd/lstar.b.br.B /appl/cmd/puttar.b.SH SEE ALSO.IR tarfs (4)