Unable to copy a file with '$' in name in Linux

前端 未结 3 2109
遇见更好的自我
遇见更好的自我 2021-01-11 23:53

Inside of my Linux directory, I have a file named TopSample$Config.class. Whenever I try to copy this file to another location/directory, it is not allowing m

3条回答
  •  抹茶落季
    2021-01-12 00:04

    Put single quotes around the filename.

    cp 'TopSample$Config.class' /home/praveen/com/config
    

提交回复
热议问题