How to change the command prompt to colored in elementary OS terminal

By default settings, elementary OS command prompt is black in color in the Terminal window, which is same color as that of the command line which you type. This was done to avoid distraction and should be OK for most of us. But, in case you wanted a colored command prompt just like in Linux Mint, you can change it in no time and without the need of installing a third-party tool. In this tip, I’m going to edit the bashrc file to change to colored Command Prompt. This is very safe and completely reversible method.

Default Command Prompt
Default Command Prompt

STEP 1: Go to ‘Applications’ and launch ‘Terminal’.

STEP 2: Type the following command and hit enter.

gedit ~/.bashrc

STEP 3: In the bashrc gedit window, scroll down slightly and look for the following line:

# force_color_prompt=yes

Uncomment that line which means you simply have to delete # in front of it. So finally it should be:


Edit Bashrc and Uncomment force_color_prompt=yes
Edit Bashrc and Uncomment force_color_prompt=yes

STEP 4: Click ‘Save’ and close the terminal.

STEP 5: Launch ‘Terminal’ again and you will see the colored command prompt.

Colored Command Prompt
Colored Command Prompt

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. Hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more, and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!


Please enter your comment!
Please enter your name here




best linux distros beginners
Making the shift to Linux is not as complicated as some people make it out to be. There is a variety of Linux distributions available that cater to the needs of people who are planning on making the jump to Linux from any other operating system.
cool and fun linux commands
The real purpose of this article is to help Linux newbies get comfortable and confident with the Linux command-line.  While knowledge and comfort of the Linux GUI allow great power, it is the mastery of the command line, or CLI, affords the Linux user unlimited power and certifies them as a Linux power user well on their way to becoming an expert.
Test drive linux online
Enter, a website that allows Linux users to test various distros online, without downloading the ISO or installing the distro. With, you can check a distro with no muss, no fuss.