An operator needs to run a scrip

题目

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
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

The operator needs to change the /test filesystem in the testvg volume group so that it mounts automatically following a system reboot. Which of the following commands is correct?()

A. chvg -a y testvg

B. chfs -A yes /test

C. mount /test -auto=yes

D. chlv -a automount=y testlv


参考答案:B

第2题:

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

第3题:

What state is a process in when it cannot run because it needs a resource to become available?

A.Ready

B.Interrupt

C.Blocked

D.Running


正确答案:C

第4题:

An administrator needs to determine what the default run level of a system is.  Which command would be used()

  • A、Isitab init
  • B、telinit -d
  • C、cat/etc/.init.state
  • D、init

正确答案:A

第5题:

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

第6题:

The operator needs to execute a long-running shell script. How can the script be executed so the operator does not have to wait until it is complete to access the command prompt?()

A. ./script.ksh

B. nohup ./script.ksh

C. run -b ./script.ksh

D. ./script.ksh > nohup.out


参考答案:A

第7题:

Operator needs to remove all leading comments from shell.script file. Which of the following vi sub-command can achieve this?()

A. :r/^#//g

B. :1,$ s/^#//g

C. :sed s/^#//g

D. :sub s/^#//g


参考答案:D

第8题:

A customer needs to run 3 virtual machines on their software design workstation. Which of thefollowing CPUs would be MOST cost effective for this task?()

A.3Core

B.4Core

C.8Core

D.12Core


参考答案:B

第9题:

Action scrip中引用的图形元素的数据类型是()

  • A、影片剪辑
  • B、对象
  • C、按钮
  • D、图形元件

正确答案:A

第10题:

The operator needs to change the /test filesystem in the testvg volume group so that it mounts automatically following a system reboot. Which of the following commands is correct?()

  • A、chvg -a y testvg
  • B、chfs -A yes /test
  • C、mount /test -auto=yes
  • D、chlv -a automount=y testlv

正确答案:B

更多相关问题