Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

The following picture is snapped in a real Linux environment.

enter image description here

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

share|improve this question
4  
So what character is it? Please update your question with the hexdump output. –  cjm yesterday
    
Even if all APIs enforce filename character restrictions on write, it could be possible (but unwieldy) to edit the filename directly in the disk image. (I do not know if today's usual filesystems check filenames on read.) –  Ulrich Schwarz 23 hours ago
    
@cjm,I have reverted the snapshot of vmware. –  xmllmx 20 hours ago
    
@UlrichSchwarz, true, but the slash in that screenshot appears very light for U+002F in a typical terminal font, suggesting that it's a different character. –  cjm 11 hours ago
    
@cjm It's also too short and slanted too much. –  Cole Johnson 8 hours ago

1 Answer 1

up vote 37 down vote accepted

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.

share|improve this answer
    
cool...thanks, that ls | hexdump -C seems to be useful in a number of cases. –  beginer yesterday
1  
There's SOLIDUS U+002F, FRACTION SLASH U+2044, DIVISION SLASH U+2215, and MATHEMATICAL RISING DIAGONAL U+27CB. It could even be a composed character with one of the combining solidus overlays, U+0337 and U+0338. –  Russell Borogove 12 hours ago
    
@RussellBorogove, thanks; I've added those possibilities to my answer. –  cjm 11 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.