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
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.