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
mv -- "-4" "target"
Just add the path