Would you like to learn how to encode a Linux command using Base64? In this tutorial, we are going to show you how to encode and decode commands on a computer running Linux.

• Ubuntu 18
• Ubuntu 19
• Ubuntu 20
• Ubuntu 22

Equipment list

Here you can find the list of equipment used to create this tutorial.

This link will also show the software list used to create this tutorial.

Tutorial Linux - Encoding a text using Base64

Encode a text using Base64.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Decode a text using Base64.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Congratulations! You are able to encrypt a text using Base64 encryption.

Tutorial Linux - Encoding a file using Base64

Create a file.

Copy to Clipboard

Here is the file content.

Copy to Clipboard

Encode a file using Base64.

Copy to Clipboard

Here is the file content.

Copy to Clipboard

Decode a file using Base64.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Congratulations! You are able to encode a file using Base64 encryption.

Tutorial Linux - Encoding a command using Base64

Encode a command using Base64.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Execute the encoded command.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Decode a command using Base64.

Copy to Clipboard

Here is the output:

Copy to Clipboard

Congratulations! You are able to encrypt a command using Linux.