{"id":823,"date":"2019-03-07T11:57:37","date_gmt":"2019-03-07T17:57:37","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=823"},"modified":"2019-03-07T11:57:37","modified_gmt":"2019-03-07T17:57:37","slug":"how-to-change-the-color-of-your-linux-prompt","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/","title":{"rendered":"How to Change the Color of your Linux Prompt"},"content":{"rendered":"<div id=\"linux-2705260630\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>&nbsp;<\/p>\n<p class=\"p1\"><span class=\"s1\">By default, all Linux installations have plain black and white color prompts. Specific commands are coded to have color combinations under certain circumstances. For example, directories in the &#8220;ls&#8221; command are coded blue by default, and scripts are colored green.<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">Similarly, the frequently used &#8220;grep&#8221; command is also color-coded to highlight matches. However, the Linux prompt itself is rather innocuous. In this article, we&#8217;ll show you how to change it to anything you want &#8211; a single color, or even a combination of them. Let&#8217;s get started.<\/span><\/p>\n<p><!--more--><\/p>\n<h2 class=\"p2\"><span class=\"s1\">Getting your Current Prompt Defaults<\/span><\/h2>\n<p class=\"p1\"><span class=\"s1\">Every Linux prompt consists of a few key details, allowing the user to keep track of where they are. By default, most have at least the username and the hostname separated by an &#8220;@&#8221; symbol. This is encoded in a special way using an environment variable called &#8220;PS1&#8221;. To see what your current variable is, type in the following command:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\">echo $PS1<\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">This will give you an output similar to this:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\"><i>[\\u@\\h \\W]\\$<\/i><\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">Here, &#8220;u&#8221; stands for the username, and &#8220;h&#8221; stands for the hostname.<\/span><\/p>\n<h2 class=\"p2\"><span class=\"s1\">Enclosing Your Prompt in Color Codes<\/span><\/h2>\n<p class=\"p1\"><span class=\"s1\">Now, we&#8217;re going to enclose this output in color codes with the following opening and closing tags:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\">\\e [<i>colorcode <\/i>$PS1 \\e[m<\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">Here, &#8220;<i>colorcode&#8221;<\/i> represents a specific color. These codes are represented by a series of numbers, separated by a semi-colon (;). For example, the following color represents yellow, with bold text:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\">0;33;1m<\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">The following represents bold text in red:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\">0;31;1m<\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">The last &#8220;1&#8221; before the &#8220;m&#8221; means that the text will be displayed in\u00a0<b>bold<\/b>. If you want your text to be purely yellow, it is as follows:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\">0;33m<\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">To make something bold, we add a &#8220;1&#8221; separated from the rest by a semi-colon. As you can see, different numbers represent different colors. Here&#8217;s a small list of numbers, along with the colors they represent:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\">30 Black <\/span>\r\n\r\n<span class=\"s1\">31 Red <\/span>\r\n\r\n<span class=\"s1\">32 Green <\/span>\r\n\r\n<span class=\"s1\">33 Yellow <\/span>\r\n\r\n<span class=\"s1\">34 Blue <\/span>\r\n\r\n<span class=\"s1\">35 Magenta <\/span>\r\n\r\n<span class=\"s1\">36 Cyan <\/span>\r\n\r\n<span class=\"s1\">37 Light gray <\/span>\r\n\r\n<span class=\"s1\">90 Dark gray <\/span>\r\n\r\n<span class=\"s1\">91 Light red <\/span>\r\n\r\n<span class=\"s1\">92 Light green <\/span>\r\n\r\n<span class=\"s1\">93 Light yellow <\/span>\r\n\r\n<span class=\"s1\">94 Light blue <\/span>\r\n\r\n<span class=\"s1\">95 Light magenta <\/span>\r\n\r\n<span class=\"s1\">96 Light cyan <\/span>\r\n\r\n<span class=\"s1\">97 White<\/span><\/pre>\n<h2 class=\"p2\"><span class=\"s1\">Creating a New PS1 Variable<\/span><\/h2>\n<p class=\"p1\"><span class=\"s1\">Now that we know how to create colors, we can enclose the PS1 variable within the opening and closing tags of the colors. To re-iterate, the format is:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\">\\e <i>[colorcode<\/i><i>[PS1 Variable]<\/i> \\e[m<\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">Since our PS1 variable is:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\"><i>[\\u@\\h \\W]\\$<\/i><\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">And the color code for bold yellow is:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\"><i>0;33;1m<\/i><\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">The final value for a bold yellow color prompt is:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\"><i>\\e[0;33;1m[\\u@\\h \\W]\\$ \\e[m<\/i><\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">And we assign it to the PS1 variable like this:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\"><i>export PS1=\"\\e[0;33;1m[\\u@\\h \\W]\\$ \\e[m\"<\/i><\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">When we run this command, we get the following output as expected:<\/span><\/p>\n<figure id=\"attachment_824\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 749px\"><img decoding=\"async\" class=\"size-full wp-image-824\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Change-Prompt-Yellow-Bold.jpg\" alt=\"Change Prompt to Yellow Bold Text\" width=\"739\" height=\"272\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Change-Prompt-Yellow-Bold.jpg 739w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Change-Prompt-Yellow-Bold-300x110.jpg 300w\" sizes=\"(max-width: 739px) 100vw, 739px\" \/><figcaption class=\"caption wp-caption-text\">Changing the Prompt to Yellow Bold Text<\/figcaption><\/figure>\n<p class=\"p1\"><span class=\"s1\">If we want, we can even have the username and hostname in different colors. To do this, we enclose the &#8220;u&#8221; and the &#8220;h&#8221; in different color codes.<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">For example, the following code converts the username to bold yellow and the hostname to bold red:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\"><i>export PS1=\"\\e[0;33;1m[\\u\\e[m@\\e[0;31;1m\\h\\e[m \\W]\\$\"<\/i><\/span><\/pre>\n<h2 class=\"p2\"><span class=\"s1\">Making the Changes Persistent<\/span><\/h2>\n<p class=\"p1\"><span class=\"s1\">The disadvantage of changing everything ad-hoc like this is that your changes will be lost when you reload the bash environment. To make our terminal remember our configuration, we need to add the command to our <code>.bashrc<\/code> file, found in our home directory. Open it with your preferred text editor:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\">nano ~\/.bashrc<\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">Simply open it in the editor, and add your export command to the end, like this:<\/span><\/p>\n<figure id=\"attachment_825\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 721px\"><img decoding=\"async\" class=\"size-full wp-image-825\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Modify-bashrc.jpg\" alt=\"Modify .bashrc\" width=\"711\" height=\"424\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Modify-bashrc.jpg 711w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/Modify-bashrc-300x179.jpg 300w\" sizes=\"(max-width: 711px) 100vw, 711px\" \/><figcaption class=\"caption wp-caption-text\">Modify .bashrc to Make Changes Persistent<\/figcaption><\/figure>\n<p class=\"p1\"><span class=\"s1\">Save your changes. Now when you log in, you should have your customized prompt for your commands!<\/span><\/p>\n<figure id=\"attachment_826\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 719px\"><img decoding=\"async\" class=\"size-full wp-image-826\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/New-Color-Scheme-Persists-After-Reboot.jpg\" alt=\"New Color Scheme Persists After Rebooting\" width=\"709\" height=\"276\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/New-Color-Scheme-Persists-After-Reboot.jpg 709w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/New-Color-Scheme-Persists-After-Reboot-300x117.jpg 300w\" sizes=\"(max-width: 709px) 100vw, 709px\" \/><figcaption class=\"caption wp-caption-text\">The New Color Scheme Persists Even After Rebooting<\/figcaption><\/figure>\n<p class=\"p1\"><span class=\"s1\">To have the changes take effect immediately instead of having to log out and log in, run the following command to reload the .bashrc file:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\">source ~\/.bashrc<\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">While this might not be the most user-friendly user interface for changing your prompt colors, it is the most common way to change the colors. If you followed the guide correctly, you should now have a command prompt in the color of your choosing.\u00a0<\/span><\/p>\n<hr \/>\n<p>Of course, you don\u2019t have to do any of this if you use one of our <a href=\"https:\/\/linuxhostsupport.com\/outsourced-hosting-support.html\">Outsourced Server Support Services<\/a>, in which case you can simply ask our expert Linux admins to configure the appearance of your command prompt for you. Just sit back, relax, and let our admins take care of the issue for you. They are available 24&#215;7 to help you with your requests.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS.<\/strong><\/span> If you liked this post on changing the color of your linux command prompt, please share it with your friends on the social networks by using the share shortcut buttons, or simply leave a comment in the comments section below. Thanks.<\/p><div id=\"linux-3123767951\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; By default, all Linux installations have plain black and white color prompts. Specific commands are coded to have color combinations under certain circumstances. For example, directories in the &#8220;ls&#8221; command are coded blue by default, and scripts are colored green. Similarly, the frequently used &#8220;grep&#8221; command is also color-coded to highlight matches. However, the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":828,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[135,136,134],"class_list":["post-823","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-color","tag-customization","tag-prompt"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Change the Color of your Linux Prompt | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"&nbsp; By default, all Linux installations have plain black and white color prompts. Specific commands are coded to have color combinations under certain\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Change the Color of your Linux Prompt | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"&nbsp; By default, all Linux installations have plain black and white color prompts. Specific commands are coded to have color combinations under certain\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-07T17:57:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/change-color-of-linux-prompt.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-change-the-color-of-your-linux-prompt\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-change-the-color-of-your-linux-prompt\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Change the Color of your Linux Prompt\",\"datePublished\":\"2019-03-07T17:57:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-change-the-color-of-your-linux-prompt\\\/\"},\"wordCount\":736,\"commentCount\":2,\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-change-the-color-of-your-linux-prompt\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/change-color-of-linux-prompt.jpg\",\"keywords\":[\"color\",\"customization\",\"prompt\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-change-the-color-of-your-linux-prompt\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-change-the-color-of-your-linux-prompt\\\/\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-change-the-color-of-your-linux-prompt\\\/\",\"name\":\"How to Change the Color of your Linux Prompt | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-change-the-color-of-your-linux-prompt\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-change-the-color-of-your-linux-prompt\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/change-color-of-linux-prompt.jpg\",\"datePublished\":\"2019-03-07T17:57:37+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"&nbsp; By default, all Linux installations have plain black and white color prompts. Specific commands are coded to have color combinations under certain\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-change-the-color-of-your-linux-prompt\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-change-the-color-of-your-linux-prompt\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-change-the-color-of-your-linux-prompt\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/change-color-of-linux-prompt.jpg\",\"contentUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/change-color-of-linux-prompt.jpg\",\"width\":750,\"height\":410,\"caption\":\"Change the Color of Your Linux Prompt\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-change-the-color-of-your-linux-prompt\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Change the Color of your Linux Prompt\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Change the Color of your Linux Prompt | LinuxHostSupport","description":"&nbsp; By default, all Linux installations have plain black and white color prompts. Specific commands are coded to have color combinations under certain","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/","og_locale":"en_US","og_type":"article","og_title":"How to Change the Color of your Linux Prompt | LinuxHostSupport","og_description":"&nbsp; By default, all Linux installations have plain black and white color prompts. Specific commands are coded to have color combinations under certain","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2019-03-07T17:57:37+00:00","og_image":[{"width":750,"height":410,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/change-color-of-linux-prompt.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Change the Color of your Linux Prompt","datePublished":"2019-03-07T17:57:37+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/"},"wordCount":736,"commentCount":2,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/change-color-of-linux-prompt.jpg","keywords":["color","customization","prompt"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/","name":"How to Change the Color of your Linux Prompt | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/change-color-of-linux-prompt.jpg","datePublished":"2019-03-07T17:57:37+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"&nbsp; By default, all Linux installations have plain black and white color prompts. Specific commands are coded to have color combinations under certain","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/change-color-of-linux-prompt.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/03\/change-color-of-linux-prompt.jpg","width":750,"height":410,"caption":"Change the Color of Your Linux Prompt"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-change-the-color-of-your-linux-prompt\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Change the Color of your Linux Prompt"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=823"}],"version-history":[{"count":3,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/823\/revisions"}],"predecessor-version":[{"id":830,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/823\/revisions\/830"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/828"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}