In my /var/log directory, I've got these three files (extracted from ls -l)
size filename
205198 ntp.log
2446 ntp.log #
4096 ntp.log -
The file "ntp.log -" is highlighted in blue.
What do the # and - after the names mean??
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Smells fishy to me. Those are not characters that mean anything after the filename, which leads me to believe that they're actually part of the filename, and the entry in blue is a directory. Use
| |||
|
feedback
|
|
What is there in other files, if both are files. Are these similar to ntp.log Also, You can determine the file type using 'file'
| |||
|
feedback
|
|
Turns out i can't pick a correct answer as this was migrated from stack overflow. Ignacio Vazquez-Abrams: You were correct, "ntp.log #" was a file and "ntp.log -" was a directory. I'm not sure about "ntp.log -", but "ntp.log #" was created in my dodgy rsyslog conf file where I tried to add a comment at the end of a file path | |||
feedback
|
lsoutput? – klez Apr 28 '10 at 8:55