Are there any invalid linux filenames?

前端 未结 3 1422
北海茫月
北海茫月 2020-12-05 06:13

If I wanted to create a string which is guaranteed not to represent a filename, I could put one of the following characters in it on Windows:

\\ / : * ? | &l         


        
3条回答
  •  星月不相逢
    2020-12-05 06:50

    There are almost no restrictions - apart from '/' and '\0', you're allowed to use anything. However, some people think it's not a good idea to allow this much flexibility.

提交回复
热议问题