What characters are forbidden in Windows and Linux directory names?

前端 未结 17 2559
北海茫月
北海茫月 2020-11-22 01:05

I know that / is illegal in Linux, and the following are illegal in Windows (I think) * . \" / \\ [

17条回答
  •  抹茶落季
    2020-11-22 01:44

    The easy way to get Windows to tell you the answer is to attempt to rename a file via Explorer and type in / for the new name. Windows will popup a message box telling you the list of illegal characters.

    A filename cannot contain any of the following characters:
        \ / : * ? " < > | 
    

    https://support.microsoft.com/en-us/kb/177506

提交回复
热议问题