Linux

mv attempts to move files. It can overwrite files entirely

mv command Syntax

$ mv options file_name

Options Description
-f If a file exists with the same name in the location a file is to be moved, it will overwrite it without any prompt
-i If a file exists with the same name in the location a file is to be moved, it will prompt you to answer if the file is to be overwritten

mv command examples

Renames the file to _another_text.txt

$ mv text.txt another_text.txt

Renames the file to another_text.txt without a prompt even if it will overwrite a file.

$ mv -f text2.txt another_text.txt

Renames the file to another_text.txt with a prompt. The default answer is no

$ mv -i text.txt existing_text.txt
overwrite text.txt? (y/n [n])  n
not overwritten

Awesome, right?