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. It moves the file to a new name in the same directory. 'rename' is not a standard Unix command (though some systems have it). 'rm' deletes files and 'cp' copies them - neither renames.