Bird
0
0

What does the cp command do in Linux?

easy📝 Conceptual Q11 of 15
Linux CLI - File and Directory Operations
What does the cp command do in Linux?
ADeletes files or directories permanently
BCopies files or directories from one location to another
CMoves files or directories to a new location
DLists files and directories in the current folder
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of cp

    The cp command is used to copy files or directories, not to delete or move them.
  2. Step 2: Compare with other commands

    Deleting is done by rm, moving by mv, and listing by ls. So cp copies files or directories.
  3. Final Answer:

    Copies files or directories from one location to another -> Option B
  4. Quick Check:

    cp = copy files/directories [OK]
Quick Trick: Remember: cp = copy files or folders [OK]
Common Mistakes:
  • Confusing cp with mv (move)
  • Thinking cp deletes files
  • Mixing cp with ls (list)

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes