The basic color of the Linux BASH is black, it corresponds to a special code called ColorCode which in this case is “0, 30″, but in this post we will deal with the education necessary to change the color of BASH.
Imagine for example you want to change the color from black to green, linked from the resource we know that the code is equivalent to the green “0; 32″, therefore, to achieve our purpose we use the following statement:
<span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left;">export PS1=”\e[0;31m[\u@\h \W]\$ \e[m”</span> export PS1 = "\ e [0; 31m [\ u @ \ h \ W] \ $ \ e [m"</span>
At this point, our change will be immediately available but the green will become the default color for our bash, which will recover the default settings the next time, to make permanent the changes made, it will be necessary to create, or edit if already present, in your home directory a file named “.bash_profile” with the following statement:
<span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left;">touch ~/.bash_profile</span> touch ~ /. bash_profile</span>
Related posts:
- Validate the value of a hex color with PHP
- Restore the sound on Linux
- Rename groups of files in Linux
- Share swap between Linux and Windows
- CD to ISO with LINUX
- Linux : Force logout of users
- Using the conditions for query UPDATE
- Check out a record in order of priority
- Make a URL with cURL
- MySQL: from image to image to BLOB and BLOB