Monday, 26 August 2013

uuencode Command

uuencode Command


Encodes a binary file for transmission using electronic mail.


uuencode [ -m ] [ SourceFile ] OutputFile


The uuencode command converts a binary file to ASCII data. This is useful before using BNU (or uucp) mail to send the file to a remote system. The uudecode command converts ASCII data created by the uuencode command back into its original binary form.
The uuencode command takes the named SourceFile (default standard input) and produces an encoded version on the standard output. The encoding uses only printable ASCII characters, and includes the mode of the file and the OutputFile filename used for recreation of the binary image on the remote system.
Use the uudecode command to decode the file.


-mEncode the output using the MIME Base64 algorithm. If -m is not specified, the old uuencode algorithm will be used.


OutputFileSpecifies the name of the decoded file. You can direct the output of the uuencode command to standard output by specifying /dev/stdout as the OutputFile.
SourceFileSpecifies the name of the binary file to convert. Default is standard input.


  1. To encode the file unix1 on the local system and mail it to the user jsmith on another system called mysys, enter:
    uuencode unix1 unix1 | mail [email protected]
  2. To encode the file /usr/lib/boot/unix2 on your local system with the name pigmy.goat in the file /tmp/con , enter:
    uuencode /usr/lib/boot/unix2 pigmy.goat > /tmp/con


/usr/bin/uuencodeContains the uuencode command.

0 blogger-disqus:

Post a Comment