Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I have my terminal in ubuntu starting with an ascii banner every time from default?

share|improve this question

3 Answers

Your .bashrc file is executed every time you open a new terminal, so if you add this line to it:

echo "____ENTER_ASCII_ART_HERE_____"

That should do it

share|improve this answer

The is a command called banner that will print a banner of ascii art. Install by running

sudo apt-get install sysvbanner

And place a line in your .bashrc file so that it will run every time you start your terminal:

banner EXAMPLE BANNER

And it will print

####### #     #    #    #     # ######  #       #######
#        #   #    # #   ##   ## #     # #       #
#         # #    #   #  # # # # #     # #       #
#####      #    #     # #  #  # ######  #       #####
#         # #   ####### #     # #       #       #
#        #   #  #     # #     # #       #       #
####### #     # #     # #     # #       ####### #######

######     #    #     # #     # ####### ######
#     #   # #   ##    # ##    # #       #     #
#     #  #   #  # #   # # #   # #       #     #
######  #     # #  #  # #  #  # #####   ######
#     # ####### #   # # #   # # #       #   #
#     # #     # #    ## #    ## #       #    #
######  #     # #     # #     # ####### #     #
share|improve this answer

You could use cowsay to show a particular message coming from one of its ascii animals; there are elephants, ducks, dragons, and many more humorous examples.

sudo apt-get install cowsay

List the animals with cowsay -l and then at the top of your ~/.bashrc or ~/.bash_aliases, place, for example, the 'eyes' object:

cowsay -f eyes "Welcome $USER"

You could take advantage of shell variables like $USER or $SHELL, etc, and have them printed to the command line. For how to add the timestamp, see this related question.

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.