Bird
0
0

What does the mv command do in Linux?

easy📝 Conceptual Q11 of 15
Linux CLI - File and Directory Operations
What does the mv command do in Linux?
ACopies files and folders
BLists files and folders
CDeletes files and folders
DMoves or renames files and folders
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of mv

    The mv command is used to move files or folders from one location to another or to rename them.
  2. Step 2: Compare with other commands

    Unlike cp which copies, or rm which deletes, mv changes the location or name without duplicating.
  3. Final Answer:

    Moves or renames files and folders -> Option D
  4. Quick Check:

    mv = move or rename [OK]
Quick Trick: Remember: mv = move or rename files [OK]
Common Mistakes:
MISTAKES
  • Confusing mv with cp (copy)
  • Thinking mv deletes files
  • Assuming mv lists files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes