Multiple choice technology operating systems

How to rename "FILE1" to "FILE2" ?

  1. ren FILE1 FILE2 - i

  2. ren FILE1 FILE2

  3. cp FILE1 FILE2

  4. mv FILE1 FILE2

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In Unix/Linux, the 'mv' command both moves and renames files. 'mv FILE1 FILE2' renames FILE1 to FILE2 (or moves it to FILE2). 'ren' is a DOS/Windows command, not Unix. 'cp' copies files rather than renaming them. The '-i' flag (for interactive prompting) is not required for basic renaming.