{"id":629,"date":"2018-10-17T23:41:14","date_gmt":"2018-10-17T23:41:14","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=629"},"modified":"2018-10-18T15:00:28","modified_gmt":"2018-10-18T15:00:28","slug":"how-to-change-the-color-of-your-bash-prompt-elinux-co-in-linux-cpanel-whm-blog","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/how-to-change-the-color-of-your-bash-prompt-elinux-co-in-linux-cpanel-whm-blog\/","title":{"rendered":"How to change the color of your BASH prompt | Elinux.co.in | Linux Cpanel\/ WHM blog"},"content":{"rendered":"<p>You can change the color of your BASH prompt to green with this command:<\/p>\n<blockquote><p>export PS1=&#8221;e[0;32m[<a href=\"\/cdn-cgi\/l\/email-protection\">[email protected]<\/a>h W]$ e[m&#8221;<\/p><\/blockquote>\n<p>It will change the colour of bash temporarily. To make it permanent then add code in bash_profile page.<\/p>\n<blockquote><p>vi ~\/.bash_profile<\/p><\/blockquote>\n<p>and paste above code save the file and you are done.<\/p>\n<h3>For other colors please see the attached list:<\/h3>\n<p>Color Code<br \/>\nBlack 0;30<br \/>\nBlue 0;34<br \/>\nGreen 0;32<br \/>\nCyan 0;36<br \/>\nRed 0;31<br \/>\nPurple 0;35<br \/>\nBrown 0;33<br \/>\nBlue 0;34<br \/>\nGreen 0;32<br \/>\nCyan 0;36<br \/>\nRed 0;31<br \/>\nPurple 0;35<br \/>\nBrown 0;33<br \/>\nLight Color Code<br \/>\nLight Black 1;30<br \/>\nLight Blue 1;34<br \/>\nLight Green 1;32<br \/>\nLight Cyan 1;36<br \/>\nLight Red 1;31<br \/>\nLight Purple 1;35<br \/>\nLight Brown 1;33<br \/>\nLight Blue 1;34<br \/>\nLight Green 1;32<br \/>\nLight Cyan 1;36<br \/>\nLight Red 1;31<br \/>\nLight Purple 1;35<br \/>\nLight Brown 1;33<\/p>\n<p><a href=\"https:\/\/www.elinux.co.in\/change-color-bash-prompt\/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=change-color-bash-prompt\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can change the color of your BASH prompt to green with this command: export PS1=&#8221;e[0;32m[[email protected]h W]$ e[m&#8221; It will change the colour of bash temporarily. To make it permanent then add code in bash_profile page. vi ~\/.bash_profile and paste above code save the file and you are done. For other colors please see &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/how-to-change-the-color-of-your-bash-prompt-elinux-co-in-linux-cpanel-whm-blog\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to change the color of your BASH prompt | Elinux.co.in | Linux Cpanel\/ WHM blog&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-629","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=629"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/629\/revisions"}],"predecessor-version":[{"id":756,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/629\/revisions\/756"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}