<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.christophchamp.com/index.php?action=history&amp;feed=atom&amp;title=Shell_colour_codes</id>
		<title>Shell colour codes - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.christophchamp.com/index.php?action=history&amp;feed=atom&amp;title=Shell_colour_codes"/>
		<link rel="alternate" type="text/html" href="http://wiki.christophchamp.com/index.php?title=Shell_colour_codes&amp;action=history"/>
		<updated>2026-04-30T12:04:31Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://wiki.christophchamp.com/index.php?title=Shell_colour_codes&amp;diff=2899&amp;oldid=prev</id>
		<title>Christoph at 02:08, 9 October 2006</title>
		<link rel="alternate" type="text/html" href="http://wiki.christophchamp.com/index.php?title=Shell_colour_codes&amp;diff=2899&amp;oldid=prev"/>
				<updated>2006-10-09T02:08:43Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In [[SuSE]], the global configuration file for the colour &amp;lt;tt&amp;gt;ls&amp;lt;/tt&amp;gt; utility &amp;lt;code&amp;gt;/etc/DIR_COLORS&amp;lt;/code&amp;gt;. You can copy this file to &amp;lt;code&amp;gt;.dir_colors&amp;lt;/code&amp;gt; in your &amp;lt;code&amp;gt;$HOME&amp;lt;/code&amp;gt; directory to override the system defaults.&lt;br /&gt;
&lt;br /&gt;
== Colour codes ==&lt;br /&gt;
Below are the colour init strings for the basic file types. A colour init string consists of one or more of the following numeric codes:&lt;br /&gt;
* Attribute codes:&lt;br /&gt;
  00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed&lt;br /&gt;
* Text color codes:&lt;br /&gt;
  30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white&lt;br /&gt;
*  Background color codes:&lt;br /&gt;
  40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white&lt;br /&gt;
&lt;br /&gt;
=== [[Bash]] shell colour codes ===&lt;br /&gt;
This following code echoes a bunch of colour codes to the terminal to demonstrate what's available. Each line is the colour code of one forground colour, out of 17 (default + 16 escapes), followed by a test use of that colour on all nine background colours (default + 8 escapes).&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 T='gYw'   # The test text&lt;br /&gt;
 &lt;br /&gt;
 echo -e &amp;quot;\n                 40m     41m     42m     43m\&lt;br /&gt;
      44m     45m     46m     47m&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
 for FGs in '    m' '   1m' '  30m' '1;30m' '  31m' '1;31m' '  32m' \&lt;br /&gt;
            '1;32m' '  33m' '1;33m' '  34m' '1;34m' '  35m' '1;35m' \&lt;br /&gt;
            '  36m' '1;36m' '  37m' '1;37m';&lt;br /&gt;
   do FG=${FGs// /}&lt;br /&gt;
   echo -en &amp;quot; $FGs \033[$FG  $T  &amp;quot;&lt;br /&gt;
   for BG in 40m 41m 42m 43m 44m 45m 46m 47m;&lt;br /&gt;
     do echo -en &amp;quot;$EINS \033[$FG\033[$BG  $T  \033[0m&amp;quot;;&lt;br /&gt;
   done&lt;br /&gt;
   echo;&lt;br /&gt;
 done&lt;br /&gt;
 echo&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting languages]]&lt;/div&gt;</summary>
		<author><name>Christoph</name></author>	</entry>

	</feed>