📄 dd.1
字号:
.TH DD 1 .SH NAMEdd \- convert and copy a file.SH SYNOPSIS.B dd[option=value] ....SH DESCRIPTION.I Ddcopies the specified input fileto the specified output withpossible conversions.The standard input and output are used by default.The input and output block size may bespecified to take advantage of raw physical I/O..PP.br.ns.TP 15.I option.I values.br.ns.TP if=input file name; standard input is default.br.ns.TP of=output file name; standard output is default.br.ns.TP .RI ibs= ninput block size.I nbytes (default 512).br.ns.TP .RI obs= noutput block size (default 512).br.ns.TP .RI bs= nset both input and output block size,superseding.I ibsand.I obs;also, if no conversion is specified,it is particularly efficient since no copy need be done.br.ns.TP .RI cbs= nconversion buffer size.br.ns.TP .RI skip= nskip.IR n ""input records before starting copy.br.ns.TP.RI files= ncopy.I nfiles from (tape) input.br.ns.TP .RI seek= nseek.I nrecords from beginning of output file before copying.br.ns.TP count=\fIn\fRcopy only.IR n ""input records.br.ns.TP conv=ascii.ds h \h'\w'conv='u'convert EBCDIC to ASCII.br.ns.IP \*hebcdicconvert ASCII to EBCDIC.br.ns.IP \*hibmslightly different map of ASCII to EBCDIC.br.ns.IP \*hlcasemap alphabetics to lower case.br.ns.IP \*hucasemap alphabetics to upper case.br.ns.IP \*hswabswap every pair of bytes.br.ns.IP \*hnoerrordo not stop processing on an error.br.ns.IP \*hsyncpad every input record to.I ibs.br.ns.IP "\*h... , ..."several comma-separated conversions.PP.fiWhere sizes are specified,a number of bytes is expected.A number may end with.B "k, b"or.B wto specify multiplication by1024, 512, or 2 respectively;a pair of numbers may be separated by.B xto indicate a product..PP.I Cbsis used only if.I asciior.I ebcdicconversion is specified.In the former case.I cbscharacters are placed into the conversion buffer, converted toASCII, and trailing blanks trimmed and new-line addedbefore sending the line to the output.In the latter case ASCII characters are read into theconversion buffer, converted to EBCDIC, and blanks addedto make up anoutput record of size.IR cbs ..PPAfter completion,.I ddreports the number of whole and partial input and outputblocks..PPFor example, to read an EBCDIC tape blocked ten 80-byteEBCDIC card images per record into the ASCII file.IR x :.IP ""dd if=/dev/rmt0 of=x ibs=800 cbs=80 conv=ascii,lcase.PPNote the use of raw magtape..I Ddis especially suited to I/O on the rawphysical devices because it allows readingand writing in arbitrary record sizes..PPTo skip over a file before copying from magnetic tape do.IP""(dd of=/dev/null; dd of=x) </dev/rmt0.SH "SEE ALSO"cp(1), tr(1).SH DIAGNOSTICSf+p records in(out): numbers of full and partial records read(written).SH BUGSThe ASCII/EBCDIC conversion tables aretakenfrom the 256 character standard inthe CACM Nov, 1968.The `ibm' conversion, while less blessed as a standard,corresponds better to certain IBM print train conventions.There is no universal solution..PPNewlines are inserted only on conversion to ASCII;padding is done only on conversion to EBCDIC.These should be separate options.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -