Linux uuencode command
The Linux uuencode command converts binary files to ASCII text format so they can be sent via email or other transfer methods.
This conversion allows files to be sent through channels that only support text transfer (such as email), and at the receiving end the uudecode command restores them to the original binary files.
Syntax
uuencode [input-file] [output-file]
Parameter Description:
input-file: the binary file to convert.output-file: the name of the converted file, which can also be an email attachment name.
Decoded file:
uudecode
Here
Example
Suppose you have a binary file example.bin and want to convert it to ASCII format and save it to encoded.txt:
uuencode example.bin example.bin > encoded.txt
This command converts the example.bin file to ASCII encoding and redirects the output to the encoded.txt file.
Decode
You can use uudecode to decode this file:
uudecode encoded.txt
This command reads the encoded.txt file and generates the original example.bin file.
Linux Command Reference