单选题An operator needs to run a script which will write standard output and standard error to different files. Which of the following commands will successfully perform this task?()A myscript.ksh 1>/tmp/log/script.log 2>/tmp/log/script.errB myscript.ksh $1>

题目
单选题
An operator needs to run a script which will write standard output and standard error to different files. Which of the following commands will successfully perform this task?()
A

myscript.ksh 1>/tmp/log/script.log 2>/tmp/log/script.err

B

myscript.ksh $1>/tmp/log/script.log $2>/tmp/log/script.err

C

myscript.ksh 1>/tmp/log/script.log 2>1 /tmp/log/script/err

D

myscript.ksh 2>1 /tmp/log/script.log 2> /tmp/log/script.err


相似考题