LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   what does highlighted means (https://www.linuxquestions.org/questions/linux-newbie-8/what-does-highlighted-means-4175419518/)

sobah 07-31-2012 03:37 AM

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

evo2 07-31-2012 03:39 AM

Hi,

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

Evo2.

sobah 07-31-2012 04:09 AM

use vi
 
1 Attachment(s)
I use vi to open files. Attached find a screen shot it

David the H. 07-31-2012 02:03 PM

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.

alinas 07-31-2012 02:44 PM

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.

chrism01 07-31-2012 05:50 PM

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


All times are GMT -5. The time now is 03:27 AM.