Bird
0
0

What does the PowerShell command Remove-Item do?

easy📝 Conceptual Q11 of 15
PowerShell - File and Directory Operations
What does the PowerShell command Remove-Item do?
ALists files or folders in a directory
BDeletes files or folders you specify
CCopies files or folders to another location
DCreates new files or folders
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of Remove-Item

    The Remove-Item command is used to delete files or folders in PowerShell.
  2. Step 2: Compare with other file commands

    Creating, copying, or listing files are done by other commands like New-Item, Copy-Item, and Get-ChildItem.
  3. Final Answer:

    Deletes files or folders you specify -> Option B
  4. Quick Check:

    Remove-Item = Delete files/folders [OK]
Quick Trick: Remove-Item means delete files or folders [OK]
Common Mistakes:
  • Confusing Remove-Item with Copy-Item
  • Thinking Remove-Item creates files
  • Assuming Remove-Item lists files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes