Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I am using slack10 with blackbox. When I am not in X my terminal displays directories in blue and other files in different colors. When I run X and blackbox, and then open up an xterm it only displays black and white. No color difference in files listed. All files are listed in black, but when I su to root, It uses a color scheme or profile or something like that. I would like to change the profile so that my user also displays files with different colors. I am suer there has to be a profile or something that I cany edit, or copy the root profile. I have read the man page for rxvt which I have been using. (I guess its supposed to be a little faster than xterm) How can I edit the profile for my user.
I would also like rxvt or xterm to open with the above plus a different fg and bg. (something easier on the eyes than black on white...) :-)
If I can I will install aterm or eterm, for the transparency, but I have tried in the past and I could never get it to compile transparency into it. Which do you prefer and why? Aterm or Xterm?
Try opening an xterm and type alias ls='ls --color -F' and then do a regular ls command. Chances are you have colors set in your ~/.bashrc but it is not used since the terminal isn't a login shell. Open up ~/.bash_profile (create it if it doesn't exist) and add the following lines:
if [ -e ~/.bashrc ]
This will make sure your ~/.bashrc is always parsed no matter how you start the shell, and if you have listing colors set in your ~/.bashrc these will be activated when you start an xterm for instance.
An alternative would be simply adding the alias command I used above to your ~/.bash_profile.
I created a .bashrc file with the alias line you suggested, and it worked. Just like you said "colors everywhere" :-)
I first tried creating a .bashrc file with the code you suggested, however when I did this it did not work. (might have been my fault. (by the way are there any "--> tabs" in your code? I might have typed it wrong. I used a tab in there once. After I created the .bashrc file with your code and tried to open xterm, it gave no $ and closed or killed itself right after I start typing in anything. Puzzling, but if I typed some of your code wrong then that might be the problem.
Thanks for all the help guys... :-)
Well Well Well... I SEE WHAT I HAVE DONE WRONG, Guess it pays to read things twice... HW-tph, I'm sorry It was totally my error. I tried to create a .bashrc, when if fact I should heve been creating a .bash-profile . Well thats what I get for not reading... Ok, I tried your first idea correctly this time but I had no luck, no color. however using your second Idea will most likley work just as well.
I have to ask the same question as Skazi "where is LS_OPTIONS being set?" Also can I add something to my .bashrc about using -fg and -bg colors. I know I will have to tweak it a little bit because some of the colors in the LS_OPTIONS might be hard to see on a black backround.
Once again.. You have all been LOADS of help... Thanks millions
Originally posted by Skazi
My question is: where is LS_OPTIONS being set? I don't see it being set in /etc/profile, and I don't have any of the other rc files which would be run by bash according to the bash manpage.
Originally posted by gplacek
I have to ask the same question as Skazi "where is LS_OPTIONS being set?"
man ls shows this...........
The variable POSIXLY_CORRECT determines the choice of
unit. If it is not set, then the variable TABSIZE deter-
mines the number of chars per tab stop. The variable
COLUMNS (when it contains the representation of a decimal
integer) determines the output column width (for use with
the -C option). Filenames must not be truncated to make
them fit a multi-column output.
The variables LANG, LC_ALL, LC_COLLATE, LC_CTYPE, LC_MES-
SAGES and LC_TIME have the usual meaning. The variable TZ
gives the time zone for time strings written by ls. The
variable LS_COLORS is used to specify the colors used.
The variable LS_OPTIONS gives default options.
The variable QUOTING_STYLE is used to specify the default
value for the --quoting-style option. It currently
defaults to literal, though the authors have warned that
this default may change to shell in some future version of