Hey, welcome! We are so glad that you’re here. We’ve seen a lot of terminals where people get welcome banners when they open it. Cool, right? It feels awesome to have a banner like that which gives a small shot of adrenaline whenever you open the terminal which shows the name / welcome greet / anything you set.
Here we will help you step by step how to set that thing on your terminal forever and change it when/what you like.
The banner we are going to create on the terminal is created by using figlet tool in Linux; to do so;
1.Fire up a terminal in your Linux machine.
2. Type-In: "sudo apt-get install figlet"
3. Check for the type of shell by: "echo "$SHELL"
4. For the bash terminal: "/root/.bashrc"
5. For the zsh terminal: "/root/.zshrc"
6. Edit the ".bashrc" or ".zshrc" file by your favourite text editor (vim, nano, gedit...) and scroll down to bottom line of the file.
7. Now add a new line in the format: "figlet -f <font name> -w <width size> -l/-c/-r <Your Text to show>"
- For fonts, use command in another terminal: "showfigfonts"
- To align the text to the center of the terminal: "figlet -c hello"
- To set the width of the text: "figlet -w 100 hello"
- To align the text to left or right: "figlet -l (or) -r hello"
Nice and Informative!
ReplyDeleteThis comment has been removed by the author.
DeleteThanks a lot.
ReplyDelete