Google News
logo
Unix - Quiz(MCQ)
Which command is used for renaming files in Unix?
A)
cp
B)
move
C)
mv
D)
rename

Correct Answer :   mv


Explanation : mv command is used for renaming files. This command does not create a copy of the file, it simply renames it. To rename file1 to file2 simply type,

$ mv  file1  file2​

Advertisement