GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — linux-command/command/base64.md at master · githubcs/linux-command

Expand file tree

/

base64.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
52 lines (34 loc) · 676 Bytes
/

base64.md

Copy path

File metadata and controls

52 lines (34 loc) · 676 Bytes
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

base64

base64 编码/解码文件或标准输入输出

描述

base64将文件或标准输入编码或解码为标准输出;

语法

base64 [OPTION]... [FILE]

参数

-d, --decode         # 解码
-i, --ignore-garbage # 解码时,忽略非字母字符
-w, --wrap=COLS      # 在指定的字符数后自动换行(默认为76), 0 为禁用自动换行

--help      # 显示此帮助说明并退出
--version   # 输出版本信息并退出

实例

编码字符串

printf foo|base64

编码文件

base64 file

解码

printf Zm9v|base64 -d

解码文件

base64 -d file
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.