单选题A system administrator wants to run a script called myscript, but does not want to see the errors that might be generated by the script. How would this be accomplished?()A /usr/local/bin/myscript > /dev/nullB /usr/local/bin/myscript < /dev/nullC /usr/l

题目
单选题
A system administrator wants to run a script called myscript, but does not want to see the errors that might be generated by the script. How would this be accomplished?()
A

/usr/local/bin/myscript > /dev/null

B

/usr/local/bin/myscript < /dev/null

C

/usr/local/bin/myscript 2> /dev/null

D

/usr/local/bin/myscript 1> /dev/null


相似考题
参考答案和解析
正确答案: B
解析: 暂无解析
更多“单选题A system administrator wants to run a script called myscript, but does not want to see the errors that might be generated by the script. How would this be accomplished?()A /usr/local/bin/myscript  /dev/nullB /usr/local/bin/myscript  /dev/nullC /usr/loc”相关问题
  • 第1题:

    Anadministratorperformsanauditonthe/usrfilesystemandfindsthefollowingpermissions:-rwsr-xr-x1rootsys514288Jun1809:40/usr/local/bin/nmonWhichofthefollowingmethodscantheadministratorusetoremoveapotentialsecurityrisk()

    A.rm/usr/local/bin/nmon

    B.chmodu-s/usr/local/bin/nmon

    C.Reinstallthefilefromtheappropriatefileset

    D.chmodgo-rx/usr/local/bin/nmon


    参考答案:B

  • 第2题:

    Linux系统的目录/usr、/home、/bin、/dev/、/var、/etc/中主要存放什么文件?


    正确答案: /usr存放用户安装的软件;
    /home存放系统用户自身的数据;
    /bin存放shell命令等可执行文件;
    /dev存放系统设备的信息;
    /var主要存放系统可变信息的内容,如日志、邮件、打印队列等;
    /etc存放系统配置信息。

  • 第3题:

    A system administrator issued the errpt command and had no results. The system administrator determined that error logging was turned off. Which of the following commands should be used to start logging system errors?()

    • A、/usr/bin/errmsg
    • B、/usr/lib/errdemon
    • C、/usr/lib/errlogger
    • D、/usr/bin/errinstall

    正确答案:B

  • 第4题:

    An AIX system administrator wants to be able to monitor disk usage and to be able to control how much disk space can be used.  Which command is run to obtain the desired output?()

    • A、 /usr/bin/filemon 
    • B、 /usr/bin/startsrc 
    • C、 /usr/sbin/acct/startup 
    • D、 /usr/bin/df

    正确答案:A

  • 第5题:

    Given the following scripts, what output would be generated() usr/local/bin/scriptl    #!/usr/bin/ksh    VARl=red    export VARl=green    VARl=blue    /usr/local/bin/script2    ARl=yellow   /usr/local/bin/script2     #!/bin/ksh   echo "The sky is ${VAR1}."

    • A、The sky is red.
    • B、The sky is blue.
    • C、The sky is green.
    • D、The sky is yellow.

    正确答案:C

  • 第6题:

    When run on a machine called client, which of the following commands will mount the /usr/local/bin directory from the host over the /home/bin directory on client?()

    • A、mount host:/home/bin /usr/local/bin
    • B、mount client:/home/bin /usr/local/bin
    • C、mount -n host /usr/local/bin /home/bin
    • D、mount -o host:/usr/local/bin /home/bin

    正确答案:C

  • 第7题:

    How are hardware errors removed from an error report that are more than 30 days old?()

    • A、 /usr/bin/errpt -d H 30
    • B、 /usr/sbin/errclear - J H 30
    • C、 /usr/bin/errclear -d H 30
    • D、 /usr/sbin/errclear -j H 30

    正确答案:C

  • 第8题:

    单选题
    A system administrator issued the errpt command and had no results. The system administrator determined that error logging was turned off. Which of the following commands should be used to start logging system errors?()
    A

    /usr/bin/errmsg

    B

    /usr/lib/errdemon

    C

    /usr/lib/errlogger

    D

    /usr/bin/errinstall


    正确答案: C
    解析: 暂无解析

  • 第9题:

    单选题
    A system administrator has just finished upgrading a system to AIX 5.2. If there are future problems, the system administrator would like to add an entry to the AIX errorlog to record this event. Which of the following commands can be issued for this purpose?()
    A

    /usr/bin/errmsg System upgraded to AIX 5.2

    B

    /usr/bin/errlog System upgraded to AIX 5.2

    C

    /usr/bin/errupdate System upgraded to AIX 5.2

    D

    /usr/bin/errlogger System upgraded to AIX 5.2


    正确答案: B
    解析: 暂无解析

  • 第10题:

    单选题
    An  administrator  performs  an  audit  on  the  /usr  filesystem  and  finds  the  following  permissions:  -rwsr-xr-x  1  root  sys  514288  Jun  18  09:40  /usr/local/bin/nmon  Which  of  the  following  methods  can  the  administrator use to remove a potential security risk()
    A

    rm /usr/local/bin/nmon

    B

    chmod u-s /usr/local/bin/nmon

    C

    Reinstall the file from the appropriate fileset

    D

    chmod go-rx /usr/local/bin/nmon


    正确答案: D
    解析: 暂无解析

  • 第11题:

    单选题
    Which cron entry will run /usr/local/bin/myscript at 0500 every Saturday()
    A

    5 0 * * 6 /usr/local/bin/myscript

    B

    6 * * 5 0 /usr/local/bin/myscript

    C

    0 5 * * 6 /usr/local/bin/myscript

    D

    0 5 6 * * /usr/local/bin/myscript


    正确答案: C
    解析: 暂无解析

  • 第12题:

    单选题
    An AIX system administrator wants to be able to monitor disk usage and to be able to control how much disk space can be used.  Which command is run to obtain the desired output?()
    A

     /usr/bin/filemon 

    B

     /usr/bin/startsrc 

    C

     /usr/sbin/acct/startup 

    D

     /usr/bin/df


    正确答案: C
    解析: 暂无解析

  • 第13题:

    Giventhefollowingscripts,whatoutputwouldbegenerated()usr/local/bin/scriptl!/usr/bin/kshVARl=redexportVARl=greenVARl=blue/usr/local/bin/script2ARl=yellow/usr/local/bin/script2!/bin/kshecho"Theskyis${VAR1}."

    A.Theskyisred.

    B.Theskyisblue.

    C.Theskyisgreen.

    D.Theskyisyellow.


    参考答案:C

  • 第14题:

    A system administrator wants to run a script called myscript, but does not want to see the errors that might be generated by the script. How would this be accomplished?()

    • A、/usr/local/bin/myscript > /dev/null
    • B、/usr/local/bin/myscript < /dev/null
    • C、/usr/local/bin/myscript 2> /dev/null
    • D、/usr/local/bin/myscript 1> /dev/null

    正确答案:C

  • 第15题:

    A system administrator has just finished upgrading a system to AIX 5.2. If there are future problems, the system administrator would like to add an entry to the AIX errorlog to record this event. Which of the following commands can be issued for this purpose?()

    • A、/usr/bin/errmsg "System upgraded to AIX 5.2"
    • B、/usr/bin/errlog "System upgraded to AIX 5.2"
    • C、/usr/bin/errupdate "System upgraded to AIX 5.2"
    • D、/usr/bin/errlogger "System upgraded to AIX 5.2"

    正确答案:D

  • 第16题:

    Which cron entry will run /usr/local/bin/myscript at 0500 every Saturday of the following?()

    • A、0 5 * * 6 /usr/local/bin/myscript
    • B、0 5 6 * * /usr/local/bin/myscript
    • C、6 * * 5 0 /usr/local/bin/myscript
    • D、5 0 Sat * * /usr/local/bin/myscript

    正确答案:A

  • 第17题:

    When run on a machine called client, which of the following commands would mount the /usr/local/bin directory from the host machine over the /home/bin directory on client?()

    • A、mount host:/usr/local/bin /home/bin
    • B、mount client:/home/bin /usr/local/bin
    • C、mount -o client:/usr/local/bin /home/bin
    • D、mount -n host:/home/bin /usr/local/bin

    正确答案:A

  • 第18题:

    An  administrator  performs  an  audit  on  the  /usr  filesystem  and  finds  the  following  permissions:  -rwsr-xr-x  1  root  sys  514288  Jun  18  09:40  /usr/local/bin/nmon  Which  of  the  following  methods  can  the  administrator use to remove a potential security risk()

    • A、rm /usr/local/bin/nmon
    • B、chmod u-s /usr/local/bin/nmon
    • C、Reinstall the file from the appropriate fileset
    • D、chmod go-rx /usr/local/bin/nmon

    正确答案:B

  • 第19题:

    Which cron entry will run /usr/local/bin/myscript at 0500 every Saturday()

    • A、5 0 * * 6 /usr/local/bin/myscript
    • B、6 * * 5 0 /usr/local/bin/myscript
    • C、0 5 * * 6 /usr/local/bin/myscript
    • D、0 5 6 * * /usr/local/bin/myscript

    正确答案:C

  • 第20题:

    单选题
    When run on a machine called client, which of the following commands would mount the /usr/local/bin directory from the host machine over the /home/bin directory on client?()
    A

    mount host:/usr/local/bin /home/bin

    B

    mount client:/home/bin /usr/local/bin

    C

    mount -o client:/usr/local/bin /home/bin

    D

    mount -n host:/home/bin /usr/local/bin


    正确答案: D
    解析: 暂无解析

  • 第21题:

    单选题
    Given the following scripts, what output would be generated() usr/local/bin/scriptl    #!/usr/bin/ksh    VARl=red    export VARl=green    VARl=blue    /usr/local/bin/script2    ARl=yellow   /usr/local/bin/script2     #!/bin/ksh   echo "The sky is ${VAR1}."
    A

    The sky is red.

    B

    The sky is blue.

    C

    The sky is green.

    D

    The sky is yellow.


    正确答案: B
    解析: 暂无解析

  • 第22题:

    单选题
    When run on a machine called client, which of the following commands will mount the /usr/local/bin directory from the host over the /home/bin directory on client?()
    A

    mount host:/home/bin /usr/local/bin

    B

    mount client:/home/bin /usr/local/bin

    C

    mount -n host /usr/local/bin /home/bin

    D

    mount -o host:/usr/local/bin /home/bin


    正确答案: D
    解析: 暂无解析

  • 第23题:

    单选题
    A system administrator wants to run a script called myscript, but does not want to see the errors that might be generated by the script. How would this be accomplished?()
    A

    /usr/local/bin/myscript > /dev/null

    B

    /usr/local/bin/myscript < /dev/null

    C

    /usr/local/bin/myscript 2> /dev/null

    D

    /usr/local/bin/myscript 1> /dev/null


    正确答案: C
    解析: 暂无解析

  • 第24题:

    单选题
    How are hardware errors removed from an error report that are more than 30 days old?()
    A

     /usr/bin/errpt -d H 30

    B

     /usr/sbin/errclear - J H 30

    C

     /usr/bin/errclear -d H 30

    D

     /usr/sbin/errclear -j H 30


    正确答案: A
    解析: 暂无解析