The base64 command in Linux is used to encode and decode data in the base64 format.

To encode data using base64, you can use the following syntax:

base64 [OPTIONS] [FILE]

For example, to encode a file named "data.txt" and save the encoded output to "encoded.txt", you can run:

base64 data.txt > encoded.txt

To decode base64-encoded data, you can use the -d option:

base64 -d [OPTIONS] [FILE]

For example, to decode the "encoded.txt" file and save the decoded output to "decoded.txt", you can run:

base64 -d encoded.txt > decoded.txt

Note that the base64 command is usually pre-installed in most Linux distributions, so you can use it directly from the command line

linux base64

原文地址: https://www.cveoy.top/t/topic/h0b5 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录