|
|||||
Commands and references ( GNU / linux kernel 2.4.18-3 and
2.4.18-14 )
Linux is a registered trademark of Linus Torvalds The commands with their most common usage are in brackets like this: [ command ]. Don't type the brackets, just what is inside of them. Back to the index page |
|||||
colors, text: To change the file type colors for the ls command first you may want to type [ env ] this will display your environment vars. In this you should see a LS_COLORS statement followed by a large number of statements like fi=00:di=00;34:ln=00;36:pi=40;33 and so on. this will be a large list. This is where the colors are set when you type the command ls. This list tells you what kind of files get what color. These numbers ( the 34 or the 36 or the 33 ) are the iso 6429 color codes . What you will need to do is change these values to suit your preference. You can change them temporarily by using a command in an xterm window something like : [ export LS_COLORS="*.html=32:di=1;36" ] this will change the color of all .html file listings in your current xterm window to a dark green and the directory listings to cyan. when you exit the xterm window everything goes back to default. Or you can change them permenantly by ( as root ) changing the listings in the /etc/DIR_COLORS.xterm file. Be careful when you do this. As root you can damage your system beyond recovery with one tiny mistake. The above worked on RedHat 8.0 (2.4.18-14). It may not be exactly the same on other systems. |
|||||
Perpetual PC's home page Perpetual PC's link page |