Open In App

How to Display Random ASCII Art on Linux Terminal?

Improve
Improve
Like Article
Like
Save
Share
Report

Here we are going to see how to print the drawing on the terminal in the form of ASCII characters. ASCII-Art-Splash-Screen is a tool written in python that pulls a random drawing from a repository and shows it every time you open the terminal. This works on UNIX-based systems like Linux and macOS. 

Now let’s see how to install the ASCII-Art-Splash-Screen tool on our Linux system.

Requirements to install

The followings are the two requirements to install the ASCII-Art-Splash-Screen tool:

Let’s see how to install curl:

To install curl on the Debian based system like Ubuntu and Kali Linux use the following command:

sudo apt install curl

For systems like RHEL/CentOS:

 yum install curl

For the Fedora 22+:

dnf install curl

How to Display Random ASCII Art on Terminal

Before moving further make sure that you have installed these dependencies on the system.

Installation of ASCII-Art-Splash-Screen tool

Now let’s see how to install ASCII-Art-Splash-Screen tool. First clone the GitHub repository on the system using the following command:

git clone https://github.com/DanCRichards/ASCII-Art-Splash-Screen.git 

After this move into the local repository and then copy the ascii.py file into the home directory. Use the following commands to do this:

cd ASCII-Art-Splash-Screen/
cp ascii.py ~/

Now to get the ASCII art on the terminal when we open the terminal we need to put python3 ascii.py command into the .bashrc file. Use the following command to put this command into .bashrc file

echo "python3 ascii.py" >> ~/.bashrc

How to Display Random ASCII Art on Terminal

We have successfully installed the ASCII-Art-Splash-Screen  tool on our Linux system. 

Now when you open a new terminal you will see the new ASCII art on the terminal every time. Here are some of them.

How to Display Random ASCII Art on Terminal

ASCII art1

How to Display Random ASCII Art on Terminal

ASCII art2

How to Display Random ASCII Art on Terminal

ASCII art3

This is how we can print the ASCII art on an open new terminal.


Last Updated : 08 Feb, 2024
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads