nerdexam
LPI

101-500 · Question #507

101-500 Question #507: Real Exam Question with Answer & Explanation

Sign in or unlock 101-500 to reveal the answer and full explanation for question #507. The question stem and answer options stay visible for context.

Shells and Shell Scripting

Question

Which of the following commands redirects the output of ls to standard error?

Options

  • Als >-1
  • Bls <<ERR
  • Cls >&2
  • Dls >>2
  • Els |error

Unlock 101-500 to see the answer

You've previewed enough free 101-500 questions. Unlock 101-500 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#I/O redirection#file descriptors#stderr#shell syntax
Full 101-500 Practice