LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
Why are these highlighted?


Hello

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

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

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
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, 03:30 PM   #3
makuyl
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, 05:59 PM   #4
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Ubuntu 12.04 X86_64
Posts: 958

Rep: Reputation: 35
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, 01:56 AM   #5
mjchin
LQ Newbie
 
Registered: Dec 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Question

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.
 
  


Reply


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 10:03 PM
All messages are highlighted in Kopete! Bjorne Linux - Software 2 08-18-2005 06:31 AM
Corrupt file, highlighted in red BPT73 Linux - Newbie 2 05-06-2005 08:30 PM
can't get rid of highlighted items in vi vinfekshen Linux - Newbie 5 10-31-2003 06:21 AM
Highlighted text in Vi doncrawley Linux - Newbie 3 10-18-2003 09:37 AM


All times are GMT -5. The time now is 11:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration