LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 03-22-2007, 07:22 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Strange Colors in CLI?


I noticed that when I changed some permissions around the other day, my colors are now very strange when I am using Konsole via CLI. Rather than all my files in a directory being a simple "white", they appear with an "orange" highlight over them which is driving me crazy. I really don't know what I did to cause this but I assume it had to do with the chmod via the directory the files are in.

Can someone please explain why I am seeing this and also if there is a simple solution to change this back to default?

Konsole Example
 
Old 03-22-2007, 08:21 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
I think the file /etc/DIRCOLORS or /etc/DIR.COLORS sets the colors which appear in the CLI. Perhaps you CHMOD'd that file to something unreadable by users, so weird colors are resulting?
 
Old 03-22-2007, 09:53 AM   #3
trashbird1240
Member
 
Registered: Sep 2006
Location: Durham, NC
Distribution: Slackware, Ubuntu (yes, both)
Posts: 463

Rep: Reputation: 31
It's happening because the shell you use (bash or zsh) has color-coded output for particular permissions.

Here's everything pertaining to colors in my .zshrc:
Code:
alias ls="ls --color=yes"
alias lsmost='ls -ot --color=no|most'
export LS_COLORS="ex=31:*.o=43:*.do=20"
"alias ls ..." means that I always want colors to show. This is probably the offending line in your configuration file. Find it; it may be in etc/bashrc or etc/bash_profile. There will be a .bashrc (or for whatever shell you use) in your home directory and you can look at it to either find the code or where it resides.

That last line actually controls what colors I see: executables are red, object files are yellow and Stata do-files are 20 (which I think is green...)

Joel
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange colors when running GUI from remote machine. dreamtheater Linux - Software 0 05-19-2006 04:53 AM
strange, strange alsa problem: sound is grainy/pixellated? fenderman11111 Linux - Software 1 11-01-2004 05:16 PM
Sound Issues with XMMS/ mpg123 strange (strange noises) thegreatbob Linux - Software 0 06-25-2004 03:18 PM
Colors jeremy LQ Suggestions & Feedback 4 06-26-2003 04:27 AM
colors Vlackmar Linux - General 0 01-07-2002 11:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration