exam questions

Exam 010-160 All Questions

View all questions & answers for the 010-160 exam

Exam 010-160 topic 1 question 21 discussion

Actual exam question from LPI's 010-160
Question #: 21
Topic #: 1
[All 010-160 Questions]

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

  • A. export-logs < sort
  • B. export-logs > sort
  • C. export-logs & sort
  • D. export-logs | sort
  • E. export-logs <> sort
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
sasquatchshrimp
Highly Voted 2 years, 9 months ago
D. is the correct answer, this also works in powershell.
upvoted 8 times
...
Vovanich
Most Recent 8 months, 4 weeks ago
Selected Answer: D
D. export-logs | sort
upvoted 2 times
...
linvidia
10 months, 3 weeks ago
Selected Answer: D
D. The pipe (|) allows the output of the first command to become the input of the second command.
upvoted 2 times
...
Sigmond
2 years, 6 months ago
B is a conditional if else than statement and is not the correct answer
upvoted 1 times
beazzlebub
2 years, 1 month ago
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.
upvoted 3 times
...
...
h0st
2 years, 8 months ago
i thin b is also correct
upvoted 1 times
Rickindauk
2 years, 7 months ago
no, B will export the stout to a file called sort
upvoted 5 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago