Cool Custom Welcome Messages on Linux terminal
Last Updated :
06 Nov, 2024
You can add your favorite welcome message to your command-line interface, and it can be the needed fun and personality added to your command line, but only if you know how to do so. This article guides you through methods to create custom welcome messages from plain text to more extensive displays with ASCII art using tools like Fortune and Cowsay.
Using .bashrc for Custom Messages
This is the .bashrc file script for Bash that this runs every time it enters into interactive mode. We could use this file to print some messages every time it launches a new terminal.
Syntax
echo "Your custom message here"
Steps on how to do it
1. Open your terminal and edit the .bashrc file:
nvim ~/.bashrc
2. Append the following line at the top of the file:
echo "Welcome Ramkumar"
3. Save the file and exit the editor
4. Quit the terminal and open a new one to search for your custom message

edit .bashrc

Terminal window displaying the custom welcome message ‘Welcome Ramkumar’
Using fortune and cowsay
Much more exciting and interactive welcome messages can be generated by using the fortune and cowsay command in tandem.
Installation
You could install fortune and cowsay for ubuntu or Linux Mint by using the following command:
sudo apt-get install fortune cowsay
Basic Usage
Add to your .bashrc file the following line
fortune | cowsay -pn

edit .bashrc

Terminal window showing a cow ASCII art with a fortune message in a speech bubble
Customizing cowsay
There are other options by which you can customize the output by cowsay. It supports different characters and formatting options.
Common Options
|
Option
|
Description
|
|
-f [character]
|
Use a character given as an argument, e.g., tux, stegosaurus
|
|
-e [eyes]
|
Change the eyes of the cow
|
|
-T [tongue]
|
Change the tongue of the cow
|
|
-W [column]
|
Define a column width for the speech bubble
|
|
-n
|
Do not wrap words
|
Examples and Advanced Usage
With Tux (Linux penguin)
fortune | cowsay -f tux

edit .bashrc

Terminal window showing Tux ASCII art with a fortune message in a speech bubble
Stegosaurus
fortune | cowsay -f stegosaurus

edit .bashrc

Terminal window showing a stegosaurus ASCII art with a fortune message in a speech bubble
Pipe with Other Commands
You can pipe other commands output to cowsay. For example, print the directory contents:
ls | cowsay -f stegosaurus

Terminal window displaying a stegosaurus in ASCII art with directory contents in a speech bubble
Custom Text
You can also use cowsay with custom text:
cowsay -f tux "Welcome to Linux!"

Terminal window showing Tux ASCII art with custom message inside a speech bubble: ‘Welcome to Linux!’
Conclusion
Welcome messages are a fun way to personalize the command-line experience with customized Linux terminals. Such tools as fortune and cowsay allow for creativity in what sort of message you want to be displayed. You just have to decide how it should appear, what characters you are going to use, and even the beauty of the display.
Cool Custom Welcome Messages on Linux – FAQs
What are the benefits of customizing my Linux terminal’s welcome message?
- Adds personalization and uniqueness
- Displays useful system information or reminders
- Improves your Linux scripting skills
- Shows company info in workplace settings
May I add images or graphics to the welcome message in my terminal?
No, terminals don’t support actual images. However, you can use ASCII art tools like “cowsay” or “figlet” to create text-based graphics.
How often can I change the welcome message in my terminal?
You can change it anytime. The message can be static or dynamic, and you can even automate changes based on time, date, or system status.
Will personalizing my terminal welcome line impact how it performs?
Simple welcome messages won’t affect performance. Complex scripts fetching real-time data might cause minor startup delays.
Can I have welcome messages for different kinds of users on the same system?
Yes, each user can have their own welcome message since they’re set in user-specific configuration files.
Similar Reads
Cool Custom Welcome Messages on Linux terminal
You can add your favorite welcome message to your command-line interface, and it can be the needed fun and personality added to your command line, but only if you know how to do so. This article guides you through methods to create custom welcome messages from plain text to more extensive displays w
3 min read
How to Send a Message to Logged Users in Linux Terminal?
Linux is a solution to the data center. It is flexible, stable, secure, and reliable. There are many users logged into servers for development purposes, testing, and usage. There are various tools to send messages to other users, but they do not allow widespread sending or sending to specific users
6 min read
How to Open Terminal in Linux?
The Shell or Command Prompt are common name for the Linux Terminal. The terminal was designed as a Linux File Browser, and this function is still carried out using it. You may traverse your files and undo changes made by using the Terminal as a File Browser. However, the very first step will be to O
4 min read
How to Clear the Terminal History in Linux
The Linux Terminal stores every command you execute in a history file like .bash_history for Bash or .zsh_history for Zsh, making it convenient to access previous commands. However, this history can become a privacy or security issue, especially when dealing with sensitive tasks or working on shared
6 min read
How to Print Colored Text to the Linux Terminal
Printing colored text to the Linux terminal can greatly enhance the visual appeal and readability of your command-line applications or scripts. While the terminal traditionally displays text in monochrome, incorporating colors can provide crucial context, highlight important information, or simply a
5 min read
How to zoom in and zoom out terminal console in linux
Linux is a Debian-based Operating system used by many professionals and other people for various purposes. Mainly Linux is used for Penetration testing and Vulnerability assessment. Windows systems often interact with GUI (graphical user interface) but in Linux, we use a terminal console more to int
7 min read
How to Customize Bash Colors and Content in Linux Terminal Prompt
If you are using the Linux operating system, that means you use the CLI most of the time. And do more work on the terminal. By default, most Linux Operating systems provide you the bash shell. Shell provides the interface between the user and kernel and executes commands. In this article, we are goi
9 min read
How to View Kernel Messages in Linux | dmesg Command
The Linux kernel is considered one of the core components of the Linux operating system. It helps in establishing the communication between the hardware and managed system resources. To monitor and troubleshoot the kernel's interactions with the hardware and software components, the dmesg command co
8 min read
How to View Colored Man Pages in Linux?
Man pages or simply manual pages are the documentation that is available with every command-line tool or application present to us in a Linux System. These types of documentation include topics from command-line tools, system calls, programs, and even abstract concepts. To read a man page simply typ
3 min read
How To Create Custom Theme for Windows Terminal?
Every operating system should have some sort of place where users can execute some commands. Commands are a very important element while using any operating system. Every technique of the operating system can't be known by all users. There might be some processes that need to be executed by the comm
4 min read