Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-17-2008, 12:08 PM   #1
LQ Newbie
Registered: Dec 2007
Posts: 11

Rep: Reputation: 0
Why are these highlighted?


When I view files some are colored, some are highlighted (I'm unable to highlight those colors here). I'm at a loss why this is.

They were fine one day but when I looked at them recently, this is what I saw (I'm trying to recreate it here). Please note some of these are highlighted (e.g., white text with a yellow highlight background, black text with a red highlight background).

Along with this, in the same directory, are files that are "normal".

?-wS------ 41376 2764295863 2994544054 4123632023 Nov 9 2004 Filename_121407
?----w--wt 25307 2244074707 1122046302 1194657282 Sep 19 2087 Filename_bpkt.Z
l--s-wxr-- 10796 2193437850 2605512551 617441815 Jan 27 2062 Filename_em.Z ->
?--S-wxr-t 30651 335915214 624273037 1787887247 Apr 21 2064 Filename_test.Z
?-w---xrw- 41264 2534682695 456922528 32850880 May 24 2097 FileName.txt
?--S------ 3323 2933816473 1295046647 852275657 Dec 6 2076 FileName.tgz
brwsr-x--x 41758 137184990 2566959328 141, 188 Jan 5 1988 FileName_something.Z

The following files appears "normally" under the same "ls -al" listing.
-rw-r--r-- 1 user user 99101667 Jan 13 12:08 FileName.txt
-rw-r--r-- 1 user user 88477355 Jan 13 11:50 FileName.txt

Any assistance or insight as to why is greatly appreciated

Old 01-17-2008, 12:16 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
You can define highlighting by file type in /etc/DIR_COLORS. If you haven't edited that file, and if you have recently run a system update or upgrade, /etc/DIR_COLORS may have been changed to add highlighting.
Old 01-17-2008, 02:30 PM   #3
Senior Member
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
"grep color /etc/profile" could give a hint.
Old 01-17-2008, 04:59 PM   #4
Registered: Oct 2005
Distribution: Manjaro
Posts: 963

Rep: Reputation: 36
normal convention is for directories to be in blue, exicutables in green and links in a grey-blue colour...
but you can change thease to whatever you wish
Old 01-18-2008, 12:56 AM   #5
LQ Newbie
Registered: Dec 2007
Posts: 11

Original Poster
Rep: Reputation: 0

Thank you for your replies, however I realized I failed to mention something else. In addition to files being highlighted or colored, please take a look at the file properties; owner, group, date, file size, etc are all off or corrupted.

I'm at a loss why this is? There are files in the same directory, and other directories that are normal. Likewise there are files that appear like this also.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
function not highlighted in vi editor in suse 10.1 manish_bioinfo Programming 3 09-13-2006 09:03 PM
All messages are highlighted in Kopete! Bjorne Linux - Software 2 08-18-2005 05:31 AM
Corrupt file, highlighted in red BPT73 Linux - Newbie 2 05-06-2005 07:30 PM
can't get rid of highlighted items in vi vinfekshen Linux - Newbie 5 10-31-2003 05:21 AM
Highlighted text in Vi doncrawley Linux - Newbie 3 10-18-2003 08:37 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:55 AM.

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