Here are some additional options for the mv command:
-
-f: Force move without prompting for confirmation. This option will overwrite existing files without asking.mv -f source.txt destination.txt -
-n: Do not overwrite an existing file. If the destination file exists, the command will not perform the move.mv -n source.txt destination.txt -
-v: Verbose mode. This option provides detailed output about what the command is doing.mv -v source.txt destination.txt -
-i: Interactive mode. This option prompts for confirmation before overwriting files.mv -i source.txt destination.txt
These options can be combined as needed. For example:
mv -iv source.txt destination.txt
This command will prompt before overwriting and provide verbose output.
