Why would a file show up surrounded by double quotes with a character surrounded by single quotes within it?
"insight_automation.log'.'2024-03-13"
I am using Ubuntu Server 22.04.3 LTS. A service desk management program (Atlassian Jira Data Center 9.12.4 if that is relevant) installed on the server writes to various log files. Some of the files are rotated, and after an update some of the log files display as shown above when I execute
~$ ls /var/[application-directory-path]/log
Other log files display without any quotes. Some examples:
atlassian-jira.log
atlassian-jira.log.1
insight_audit.log
insight_audit.log.2024-03-05
insight_automation.log
There are many posts about single and double quotes in Unix systems, especially with the GNU developers adding single quotes around files with spaces. I am somewhat familiar with the nuance surrounding these characters and Unix, but this is new to me, and I can't find an explanation anywhere online (likely because it is difficult to phrase the problem).
I looked at the logging configuration files and nothing appears different between the delinquent insight_automation.log rotate settings and the other log files. My only guess is that the dot in the name is a different Unicode character that is escaped similar to the way spaces in file names are. Maybe One Dot Leader, Interpunct, or Bullet?
I am sure I can fix the issue simply, but knowing why it is displayed like this would help a lot.
insight_automation.log'.'2024-03-13
. The single quotes are part of the filename itself.ls
wraps the whole name in double quotes to prevent shell from treating the single quotes as syntax.find . -maxdepth 1 -name "*'*'*"
will show the filename as-is. Orecho *\'*
. – Paul_Pedant Mar 13 '24 at 20:17