dd—converts a file while copying it

dd [--help] [--version] [if=file] [of=file][ibs=bytes] [obs=bytes]
   [bs=bytes] [cbs=bytes] [skip=blocks] [seek=blocks] [count=blocks]
   [conv={ascii,ebcdic,ibm,block,unblock,lcase,ucase,swab,noerror,notrunc, ync}]

Copies a file from one place to another, most commonly to and from tape drives or from different operating systems.

Example A.19.
1 $ dd --help
2 $ dd if=inputfile of=outputfile conv=ucase
				

Explanation

  1. Prints all options and flags with a short description of each.

  2. Converts all characters in inputfile to uppercase and sends output to outputfile.

Get Linux Shells by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.