Ace the COMPTIA A+ 2025 Exam – Get Ready to Geek Out and Dominate!

Image Description

Question: 1 / 525

What does the Linux command 'ls /bin/p* | grep wd' do?

Lists all directories starting with 'p' and containing 'wd'

Lists all files starting with 'p' and containing 'wd' in the filename or path

This command lists all files and directories starting with 'p' and containing 'wd' within their filename or path. Option A is incorrect as it only lists directories, while option C is incorrect as it deletes files rather than listing them. Option D is incorrect as it does not create a new file.

Get further explanation with Examzify DeepDiveBeta

Deletes all files starting with 'p' and containing 'wd'

Creates a new file starting with 'p' containing 'wd'

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy