To add date and color to your terminal in your Linux Ubuntu operating system, follow the commands below in order.
nano ~/.profile
We add the following code to the bottom of the file.
export PS1="\e[0;31m[\d \t] \e[m \e[0;33m[\u@\h:\w ] \e[m$ "
We enter the following command to validate the change in the .profile file we logged into.
source ~/.profile
If your settings are not saved when you close and reopen the terminal, you can change the ~/.bashrc folder instead of ~/.profile.
You have examined the knowledge base in detail, but if you cannot find the information you need,
Create a Support Ticket