Home »
MCQs »
Linux MCQs
Which is the correct command syntax to rename a file 'abc.txt' to 'pqr.txt'?
18. Which is the correct command syntax to rename a file "abc.txt" to "pqr.txt"?
- mv abc.txt pqr.txt
- mv pqr.txt abc.txt
- mv -a pqr.txt abc.txt
- mv -all pqr.txt abc.txt
Answer: A) 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