DISCLAIMER : Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility.If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

uuencode Command

The uuencode utility writes an encoded version of the named input file, or standard input if no file is specified, to standard output. The output is encoded using the algorithm described in the STDOUT section and includes the file access permission bits (in chmod octal or symbolic notation) of the input file and the decode_pathname, for re-creation of the file on another system that conforms to this specification
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.


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


OutputFile Specifies 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.
SourceFile Specifies the name of the binary file to convert. Default is standard input.


To encode the file unix on the local system and mail it to the user jsmith on another system called mysys, enter: uuencode unix unix | mail jsmith@mysys

To encode the file /usr/lib/boot/unix on your local system with the name pigmy.goat in the file /tmp/con , enter: uuencode /usr/lib/boot/unix pigmy.goat > /tmp/con

Do you like this story?

No comments:

Post a Comment