LPI 010-150 Question Answer
How can the normal output of a command be written to a file while discarding the error output?
command >2>file 1&>/dev/null
command < output > /dev/null
command > discard-error > file
command > /dev/null 2&>1 output
command >file 2>/dev/null
TESTED 16 Jul 2025
Copyright © 2014-2025 ACE4Sure. All Rights Reserved