Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux uuencode command

Linux uuencode command

Linux Command Reference Linux Command Reference

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:

Decoded file:



uudecode 

Here is the name of the encoded file.

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 Linux Command Reference