uudecode
file processingLinux/Unix
The uudecode command is one of the most frequently used commands in Linux/Unix-like operating systems. uudecode Decode a file created by uuencode
Quick Reference
Command Name:
uudecode
Category:
file processing
Platform:
Linux/Unix
Basic Usage:
uudecode [options] [arguments]
Common Use Cases
Syntax
uudecode [options] [file...]
Options
| Option | Description |
|---|---|
-o, --output-file=FILE |
Direct output to FILE instead of the filename specified in the UUencoded header |
-c, --ignore-char |
Ignore invalid characters that might appear in the uuencoded data |
--help |
Display help information and exit |
--version |
Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the uudecode command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
Decode a uuencoded file
uudecode file.uu
Decode a uuencoded file and save to a specific output file
uudecode -o output.txt file.uu
Advanced Examples:
Decode all .uu files in the current directory
for file in *.uu; do
Decode a file from standard input
cat file.uu | uudecode
Decode a file and verify the result
uudecode file.uu
Assuming you have the original file and the encoded version
original="original.bin"