in order to prevent mv
from trying to interpret a file with a leading dash (e.g. -pbla.png
) as an option (like -p bla.png
), you can separate the flags from the files using a double dash --
:
mv -i -- *.png ../
another simple way is to prefix the current path ./
to each filename:
mv -i ./*.png ../