How do you rename file "new" in file "old"?
-
mv new old
-
cp new old
-
rn new old
-
rename new old
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.