Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equals sign at end of filename

Tags:

file

ls

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').

like image 408
dmgig Avatar asked Jul 23 '15 17:07

dmgig


People also ask

How do I create a special character in a file name?

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.

Are periods allowed in filenames?

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.


1 Answers

Answer is here: https://unix.stackexchange.com/questions/107429/sign-at-the-end-of-sock-files-in-the-ls-output

It just means socket.

like image 187
dmgig Avatar answered Sep 30 '22 11:09

dmgig