IBM(000-103)

单选题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

参考答案和解析
正确答案: D
解析: 暂无解析
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

An Operator is in /var/tmp and needs to go to /var/adm. Which of the following is correct?()

A. cd /adm

B. cd ./adm

C. cd ../adm

D. cd /../adm


参考答案:C

第2题:

An administrator needs to document system changes that have occurred recently. The company has a policy of making all possible changes via the smit interface. Which file would show the commands that have been performed from within smit and their resulting output?()

  • A、/smit.log
  • B、/smit.script
  • C、/var/log/smit.log
  • D、/var/log/smit.script

正确答案:A

第3题:

To which directory does the Junos OS write traceoptions files?()

A. /var/tmp/

B. /var/

C. /var/log/

D. /var/home/<username>/


参考答案:C

第4题:

A recently installed package needs to be rolled back to a previous version. Which of the following commands will perform the task?() 

  • A、reject
  • B、cleanup
  • C、deinstall
  • D、uninstall

正确答案:A

第5题:

Which of the following commands should be used to obtain a detailed output of the system error log?()

  • A、 errpt -d 
  • B、 errpt -a 
  • C、 errpt -D 
  • D、 errpt -i /var/adm/ras/diag_log

正确答案:B

第6题:

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


参考答案:A

第7题:

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

正确答案:A

第8题:

A recently installed package needs to be rolled back to aprevious version.Which of the following commands will perform the task?()

A.reject

B.cleanup

C.deinstall

D.uninstall


参考答案:A

第9题:

Which log contains the output generated when starting and stopping a cluster?()

  • A、 tmp/cspoc.log
  • B、 /tmp/hacmp.out
  • C、 /var/adm/ras/hacmp.error
  • D、 /var/hacmp/clcomd/clcomddiag.log

正确答案:B

第10题:

An Operator is in /var/tmp and needs to go to /var/adm. Which of the following is correct?()

  • A、cd /adm
  • B、cd ./adm
  • C、cd ../adm
  • D、cd /../adm

正确答案:C

更多相关问题