Multiple choice technology

How do you rename file "new" in file "old"?

  1. mv new old

  2. cp new old

  3. rn new old

  4. rename new old

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

In Unix/Linux, the 'mv' command moves or renames files. 'mv new old' renames file 'new' to 'old'. The syntax is 'mv source destination'. The 'cp' command copies files, 'rn' is not a standard Unix command, and 'rename' may exist in some systems but is not the standard portable method.