Linux command
uudecode 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Decode a uuencoded file
uudecode [encoded.txt]
Decode to a specific output file
uudecode -o [output] [encoded.txt]
Decode from stdin
cat [encoded.txt] | uudecode
Decode multiple files
uudecode [file1.txt] [file2.txt]
说明
uudecode transforms uuencoded files back to their original binary form. It automatically detects whether the input uses traditional UU encoding or base64 encoding and handles both formats. By default, the output filename is taken from the encoded file's header line. The -o option overrides this. File permissions are restored from the encoded header, except that setuid and execute bits are not retained for security. When multiple files are specified, each is decoded separately.
参数
- -o _outfile_
- Write output to specified file instead of the name in the encoded data.
FAQ
What is the uudecode command used for?
uudecode transforms uuencoded files back to their original binary form. It automatically detects whether the input uses traditional UU encoding or base64 encoding and handles both formats. By default, the output filename is taken from the encoded file's header line. The -o option overrides this. File permissions are restored from the encoded header, except that setuid and execute bits are not retained for security. When multiple files are specified, each is decoded separately.
How do I run a basic uudecode example?
Run `uudecode [encoded.txt]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -o _outfile_ do in uudecode?
Write output to specified file instead of the name in the encoded data.