fish - linux mv file cannot be moved due to file name
欧阳克
欧阳克 2017-06-24 09:42:40
0
2
1071

I have a file in a directory that starts with -4. I want to move it. Maybe mv recognizes -4 as a parameter, and the result is

mv: invalid option -- '4'

I didn’t find a solution after I started manning, and I couldn’t find a solution through searching. Is it possible to just rename it?
Hope someone can answer
shell is fish

欧阳克
欧阳克

温故而知新,可以为师矣。 博客:www.ouyangke.com

reply all(2)
女神的闺蜜爱上我

mv -- "-4" "target"

扔个三星炸死你

Just add the path

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template