Display Custom Text And Time Everytime You Open Terminal On Linux

Share:

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.

18 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. TAXPRO is a chief expert administration firm enhancing the matter of its customers for over 30 decades. We do this by giving a wide array of administrations in the monetary space which ranges from Entry Level Strategy, Taxation consultancy administrations, GST, Audit and Assurance, Accounting, Corporate Compliance, Payroll Services, ESI/PF Consultancy, and part more. We are a group of expense experts that incorporates Chartered Accountants, Advocates, Company Secretaries, Financial counselors offering tax marketing to the makers, Traders, Dealers, and specialist organizations of the business. Our administrations are looked for different business, lawful, and tax assessment confusions.

    ReplyDelete
  12. 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
  13. TAXPRO is a chief expert administration firm enhancing the matter of its customers for over 30 decades. We do this by giving a wide array of administrations in the monetary space which ranges from Entry Level Strategy, Taxation consultancy administrations, GST, Audit and Assurance, Accounting, Corporate Compliance, Payroll Services, ESI/PF Consultancy, and part more. We are a group of expense experts that incorporates Chartered Accountants, Advocates, Company Secretaries, Financial counselors offering marketing for tax professionals to the makers, Traders, Dealers, and specialist organizations of the business. Our administrations are looked for different business, lawful, and tax assessment confusions.

    ReplyDelete
  14. TAXPRO is a chief expert administration firm enhancing the matter of its customers for over 30 decades. We do this by giving a wide array of administrations in the monetary space which ranges from Entry Level Strategy, Taxation consultancy administrations, GST, Audit and Assurance, Accounting, Corporate Compliance, Payroll Services, ESI/PF Consultancy, and part more. We are a group of expense experts that incorporates Chartered Accountants, Advocates, Company Secretaries, Financial counselors offering marketing for accounting firm to the makers, Traders, Dealers, and specialist organizations of the business. Our administrations are looked for different business, lawful, and tax assessment confusions.

    ReplyDelete
  15. Job scope at huge scale lies for forensic science professionals at crime laboratories rub by city, county or state governments. The other region where a person searching for a career in forensic science can secure job are Federal agencies such as the Departments of Justice, Federal Bureau of Investigation, Secret Service, Drug Enforcement Administration, Bureau of Alcohol, Tobacco and Firearms, Postal Inspection Service and other essential departments, private labs and university laboratories is also a area of function for Forensic Science technician. marketing1on1 backlinks

    ReplyDelete
  16. 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
  17. 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