Display Custom Text And Time Everytime You Open Terminal On Linux


Customizing terminal has always been a enjoyable trend and passion to Linux users, specially to those who are new to Linux. And this article is perfect for those who loves CLI rather than GUI. Wouldn’t you love to be able to customize your terminal, like in the picture below?

Perform the the steps below to achieve the same results as in the above image:

To show the customized text and date/time on terminal, we will need to install a small package named Figlet, and edit a system file named bash.bashrc. So lets start by installing Figlet.




Step 1 Install Figlet

For hardcore/advance users this ain’t even a step, you know what to do. For novice users follow the below to install figlet.

Open terminal and enter the following command, you will need root permissions to perform this task.
Sudo apt-get install figlet
Now the figlet package should be installed successfully, if not try below
first,
Sudo apt-get update
then again,
Sudo apt-get install figlet


Step 2 Edit bash.bashrc File
Now that we have install our package lets add the customized text. Again you will need root permissions to edit and add your custom text.
To edit the file enter the following command on terminal
For CLI editor
sudo nano /etc/bash.bashrc
For GUI editor
sudo pluma /etc/bash.bashrc
Or use whatever your favourite text editor is.

Now scroll to the end of the file and then add your custom text and save it like in the image below,


I want to show ‘sombii@sombex’, so I typed that.
Again lets add the date/time, to show date/time type ‘date’ below on new line after your customized text. You have successfully added the custom text, see for yourself by opening a new terminal.

You can be happy with what it looks like or you can customize format of date/time. You can show only the date or only time and in other formats too. View examples below.

To show date only,

date +"%m-%d-%y"

To show time only,

date +"%T" Or for 12-hr clock time date +"%r"

If you want to learn more about date/time formatting here’s an article for it.

So thats all, hope that you were able to follow the instructions without any issues, if any please comment below. I would love to help you.

17 Comments

  1. I admit, I have not been on this web page in a long time... however it was another joy to see It is such an important topic and ignored by so many, even professionals. professionals. I thank you to help making people more aware of possible issues. google maps alternatives

    ReplyDelete
  2. It doesn't work for me 'cause Figlet doesn't want to install

    ReplyDelete
  3. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work. texting service for small business

    ReplyDelete
  4. This is my first time visit to your blog and I am very interested in the articles that you serve. Provide enough knowledge for me. Thank you for sharing useful and don't forget, keep sharing useful info: best texting service

    ReplyDelete
  5. How can remove smart LTE lock to my phone

    ReplyDelete
  6. The Master's Guide to text message customer service
    A large number of private companies use instant message advertising to empower expanded promoting commitment from possibilities and clients. As far as we can tell, most independent ventures use text showcasing to produce expanded client securing, convey advancements and warnings, augment client support viability, and increment inside productivity.
    From retail organizations and not-for-profit associations to land and eateries, text showcasing is utilized by more independent companies than at any time in recent memory.

    ReplyDelete
  7. Succeed! It could be one of the most useful blogs we have ever come across on the subject. Excellent info! I’m also an expert in this topic so I can understand your effort very well. Thanks for the huge help. handcrafted leather bags

    ReplyDelete
  8. Texting is an extremely effective communication & marketing channel for tax preparation services. 98% of text messages are read within 3 minutes of receipt! That’s significant when you consider that 90% of emails are considered SPAM so email marketing for tax professionals just isn’t as effective anymore. Whether you are marketing an accounting firm or just tax preparation marketing

    ReplyDelete
  9. We’re a tax preparation company in textellent in providing tax planning/tax filing, firm registration, and financial services. We are working with Individuals, Businesses, Charities in the world, and offering them professional tax services with their unique tax filing requirements tax preparation services

    ReplyDelete
  10. i am always looking for some free stuffs over the internet. there are also some companies which gives free samples. watches

    ReplyDelete
  11. Are you not writing your book because you cannot find the time? Or do you insist you need a longer amount of time than you have to give your subject matter the attention it needs, "I can't write a book unless I have two or three hours a day, five days a week to devote to it. Here is the first secret about writing a book. If you wait until you have "time" to write that book, chances are you won't. You will never have enough "time" to write. Here's what you can do instead.
    https://www.zhitomir.info/news_198441.html

    ReplyDelete
  12. Striking dispatch! I'm probably getting reasonable to over this data, is truly friendly my amigo. In like way acclaimed blog here among beast levels of the rich data you secure. Hold up the obliging joint effort you are doing here. https://vograce.com

    ReplyDelete
  13. The basic concept of web hosting is to create a space for one's website presence on the World Wide Web through web hosting companies. These web-hosting companies essentially host your web sites and charge an affordable monthly or yearly fee for this service. The companies own servers that play the role of data centers and the client's files are stores in these data centers. https://hostinglelo.in/

    ReplyDelete
  14. I admire that I haven't visited this page in a long time, but it was a delight to discover that it is such an important issue that so many people search about Marketing dissertation writing service , including professionals, are unaware of.

    ReplyDelete
  15. embroidery name patches said...
    Thanks for posting this trick and this is the very informative and helpful article for me and once again thanks for posting this article and keep it up.

    ReplyDelete
  16. This comment has been removed by the author.

    ReplyDelete
Previous Post Next Post