Multiple choice technology programming languages

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

The 'mv' command in Unix/Linux is used to move or rename files and directories. When you use 'mv new old', it renames the file 'new' to 'old' (assuming both are in the same directory). The 'cp' command copies files but doesn't rename the original. Commands like 'rn' and 'rename' don't exist in standard Unix.