红穆笔记

uuencode

將二進制文件編碼爲 ASCII,以便通過僅支持簡單 ASCII 編碼的媒介傳輸

100% 瀏覽器本地處理 0 數據上傳

常用示例

編碼一個文件並將結果打印到 `stdout`

uuencode {{路徑/到/輸入文件}} {{解碼後文件名}}

編碼一個文件並將結果寫入到一個文件

uuencode -o {{路徑/到/輸出文件}} {{路徑/到/輸入文件}} {{解碼後文件名}}

使用 Base64 而不是默認的 uuencode 編碼一個文件,並將結果寫入到一個文件

uuencode {{[-m|--base64]}} -o {{路徑/到/輸出文件}} {{路徑/到/輸入文件}} {{解碼後文件名}}

提示:花括號{{…}}是需要替換的參數(路徑、文件名等);命令只在本機終端執行,本站不保存任何輸入。

英文原文對照

展開英文說明與示例(來源 tldr-pages)

Encode binary files into ASCII for transport via mediums that only support simple ASCII encoding. More information

Encode a file and print the result to `stdout`

uuencode {{path/to/input_file}} {{output_file_name_after_decoding}}

Encode a file and write the result to a file

uuencode -o {{path/to/output_file}} {{path/to/input_file}} {{output_file_name_after_decoding}}

Encode a file using Base64 instead of the default uuencode encoding and write the result to a file

uuencode {{[-m|--base64]}} -o {{path/to/output_file}} {{path/to/input_file}} {{output_file_name_after_decoding}}

命令信息

命令名uuencode
用途將二進制文件編碼爲 ASCII,以便通過僅支持簡單 ASCII 編碼的媒介傳輸
適用平臺通用
示例數量3 條
官方文檔https://manned.org/uuencode
數據來源tldr-pages(CC-BY-4.0)· 社區中文翻譯

常見問題

uuencode 命令是做什麼的?

將二進制文件編碼爲 ASCII,以便通過僅支持簡單 ASCII 編碼的媒介傳輸

uuencode 怎麼用?

頁面按場景列出了3 條常用示例:每條示例先說明用途,再給出可直接複製的完整命令(花括號裏是需要替換的參數)。

uuencode 最常用的操作是什麼?

編碼一個文件並將結果打印到 `stdout`:uuencode {{路徑/到/輸入文件}} {{解碼後文件名}}

命令裏的花括號是什麼意思?

花括號{{…}}表示需要替換成你自己的值,例如路徑、文件名;同名參數方括號(如 [-C|--directory])表示可選寫法。