Google News
logo
Linux - Quiz(MCQ)
Which is the correct command syntax to rename a file "abc.txt" to "pqr.txt"?
A)
mv pqr.txt abc.txt
B)
mv -a pqr.txt abc.txt
C)
mv abc.txt pqr.txt
D)
mv -all pqr.txt abc.txt

Correct Answer :   mv abc.txt pqr.txt


Explanation : The correct command syntax to rename a file "abc.txt" to "pqr.txt" is:

mv abc.txt pqr.txt​

Advertisement