LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 07-31-2012, 04:37 AM   #1
sobah
LQ Newbie
 
Registered: Jul 2012
Posts: 16

Rep: Reputation: Disabled
what does highlighted means


helo,

I am using RHEL5. When I list the contents of log folder using ls i see acpid highlighted (not font colour) in yellow.

so can anyone tell me what the highlight means and what other colours and they resemble if highlighted. If i am not mistaken i saw one highlighted in red colour as well.

thanks
 
Old 07-31-2012, 04:39 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

what program are you using to read your logs? Also, exactly what log file are you looking at?

Evo2.
 
Old 07-31-2012, 05:09 AM   #3
sobah
LQ Newbie
 
Registered: Jul 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
use vi

I use vi to open files. Attached find a screen shot it
Attached Thumbnails
Click image for larger version

Name:	highlighted.PNG
Views:	22
Size:	26.3 KB
ID:	10240  
 
Old 07-31-2012, 03:03 PM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
What do ls -l and file give you for that file?

It's is almost certainly being detected by ls as a special file type of some kind, and is displaying it according to that filetype's dircolors setting. If you can figure out what kind of file it's being seen as then if you want you should be able to adjust the setting.

I'm going to make a wild guess that it's probably a compressed archive of some kind.
 
Old 07-31-2012, 03:44 PM   #5
alinas
Member
 
Registered: Apr 2002
Location: UK, Sywell, EGBK
Distribution: RHEL, SuSE, CentOS, Debian, Ubuntu
Posts: 60

Rep: Reputation: 20
ls shows colour according to the LS_COLORS variable. To see the encoding type: set | grep COLOR. I don't quite understand which code represents which colour, but you can get an idea. Also, try command: file /var/log/acpi, to do a bit backward engineering in matching codes to file types.
 
Old 07-31-2012, 06:50 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Also
Code:
ls -l
(lowercase L) will show the filetype in the first char of the perms eg http://www.tuxfiles.org/linuxhelp/filepermissions.html
 
  


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
chmod and highlighted directories. Drigo Linux - Newbie 7 03-16-2010 02:00 PM
everything highlighted in vim ashmula Linux - Newbie 3 05-09-2009 03:32 AM
Why are these highlighted? mjchin Linux - Newbie 4 01-18-2008 01:56 AM
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 06:38 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