Multiple choice technology operating systems

Command to rename a file in unix

  1. rename

  2. rm

  3. mv

  4. cp

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

The 'mv' command is used to rename files in Unix/Linux systems. It moves a file from one name to another, effectively renaming it. 'rename' is not a standard Unix command, 'rm' removes files, and 'cp' copies them. Therefore, option C is correct.