010-160 Exam QuestionsBrowse all questions from this exam

010-160 Exam - Question 21


Which of the following commands sorts the output of the command export-logs?

Show Answer
Correct Answer: D

To sort the output of one command using another, the pipe (|) operator is used to pass the output of the first command as input to the second command. In this case, 'export-logs | sort' is the correct syntax to sort the output of the 'export-logs' command.

Discussion

5 comments
Sign in to comment
sasquatchshrimpOption: D
Dec 13, 2020

D. is the correct answer, this also works in powershell.

linvidiaOption: D
Oct 27, 2022

D. The pipe (|) allows the output of the first command to become the input of the second command.

VovanichOption: D
Dec 20, 2022

D. export-logs | sort

h0stOption: D
Jan 9, 2021

i thin b is also correct

Rickindauk
Jan 30, 2021

no, B will export the stout to a file called sort

SigmondOption: D
Feb 24, 2021

B is a conditional if else than statement and is not the correct answer

beazzlebub
Jul 25, 2021

B is not a conditional if else statement, it is a redirection of the output from the console screen (standard out) into a file named sort.