LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 03: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, 03:39 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

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

Evo2.
 
Old 07-31-2012, 04: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:	26
Size:	26.3 KB
ID:	10240  
 
Old 07-31-2012, 02:03 PM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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, 02: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, 05:50 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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



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 01:00 PM
everything highlighted in vim ashmula Linux - Newbie 3 05-09-2009 02:32 AM
Why are these highlighted? mjchin Linux - Newbie 4 01-18-2008 12:56 AM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:21 AM.

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