Why can Linux show a file name containing character ‘/’

filenamesls

The following picture is snapped in a real Linux environment.

ls output showing characters similar to forward-slash (/) in a filename

Why can Linux show a file name containing character '/'?

Best Answer

It's not a / character (U+002F); it's some Unicode character that just looks similar.

Try

ls | hexdump -C

to see what it is.

Some possibilities are FRACTION SLASH (U+2044), DIVISION SLASH (U+2215), MATHEMATICAL RISING DIAGONAL (U+27CB), and the combining solidus characters U+0337 and U+0338, but there's no way to tell which one from your screenshot.

Related Question