Multiple choice technology operating systems

What of the below commands will rename a file from its oldname to newname?

  1. rm oldname newname

  2. rename oldname newname

  3. ren oldname newname

  4. mv oldname newname

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

The mv (move) command is standard in Unix/Linux to rename or move files. rm is used to delete files, and command names like ren or rename (with this syntax) are either Windows commands or require different arguments depending on the utility installed.