How change text color using linux in text mode only runlevel 3?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
trickykid, it seems as though you are misunderstanding.
He does not want to change the color in a terminal ... he wants to change the color of the foreground text in the console ... for example: when I'm not running X, I want the console to display green by default.
I'm looking for the same thing too ...
I don't know how other distros handle it, but in SuSE, there is a folder (/etc/bootsplash/themes/SuSE/config) containing config files that can be edited to change foreground and background colors.
I expect other distros have something similar. Might take a bit of searching to find it.
I don't know if your distro works the same as mine - or if this is what you're looking for. I added a file to my home directory called .profile with the line to change the text color to red.
This makes the prompt red (0;31) with the prompt text as username@hostname:workingpath$ and then resets the color to gray (0;37). So if you wat it to stay red while you type just leave off the \[\033[0;37m\]. I don't remember where I found the numbers for the colors but after you find them just plug them into the line above. I don't know if this affects the output of commands such as ls. And this is user-specific so this only affects the user who has this file in their home directory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.