Which of the following commands sorts the output of the command export-logs?
Which of the following commands sorts the output of the command export-logs?
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.
D. is the correct answer, this also works in powershell.
D. The pipe (|) allows the output of the first command to become the input of the second command.
D. export-logs | sort
i thin b is also correct
no, B will export the stout to a file called sort
B is a conditional if else than statement and is not the correct answer
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.