I'm having some mysql trouble, and I went to find my mysql socket file but it has an equals sign appended to the end when doing ls -lA
on the directory. I am using Mac OS X 10.6.8.
srwxrwxrwx 1 _mysql wheel 0 Jul 23 10:08 mysql.sock=
When I cat
it with the equals sign its a no go so it isn't really part of the name...
cat: mysql.sock=: No such file or directory
What's going on here? I can find a lot of info on line about *
and @
being appended, but not =
I guess I should note that when I cat it without the equals sign, it does work.
This has helped me understand what the starting s
means (it means 'socket').
Double your \ , like this: \\ , so that your shell does not interpret the backslashes from your filename as escape characters. Escape " and ' , like this: \" , \' , so that your shell interprets the double quotes as part of the filename.
Illegal Filename CharactersDon't start or end your filename with a space, period, hyphen, or underline. Keep your filenames to a reasonable length and be sure they are under 31 characters. Most operating systems are case sensitive; always use lowercase. Avoid using spaces and underscores; use a hyphen instead.
Answer is here: https://unix.stackexchange.com/questions/107429/sign-at-the-end-of-sock-files-in-the-ls-output
It just means socket.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With