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


相似考题
更多“单选题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/tm”相关问题
  • 第1题:

    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

  • 第2题:

    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

  • 第3题:

    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

  • 第4题:

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

    • A、/var/tmp/
    • B、/var/
    • C、/var/log/
    • D、/var/home/<username>/

    正确答案:C

  • 第5题:

    You install a copy of Mysql 5.6.13 on a brand new Linux server by using RPM packages. The server starts successfully as verified by the following commands: $ pidof mysqld 3132 $tail – n2 /var/lib.mysql/hostname.err 2013-08-18 08:18:38 3132 [Note] /usr/sbin/mysqld:ready for connections. Version: '5.6.13-enterprise-commercial-advaced' socket:'/tmp/mysql.sock' port; 3306 Mysql Enterprise Server – Advanced Edition (Commercial) You attempt to log in as the root user with the following command: $mysql – u root ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) Which statement is true about this scenario?()

    • A、The RPM installation script sets a default password of password for new installations
    • B、The local root user must log in with a blank password initially: mysql –u root –p
    • C、New security measures mean that the mysql_secure_installation script must be run first on all new installations
    • D、The mysql_install_bd post-installation script used – random-password

    正确答案:D

  • 第6题:

    A System p administrator needs to run the annualreval.sh script, directing standard error to /var/log/reval.err, and appending standard out to /var/log/reval.log.  How can this be accomplished ()

    • A、annualreval.sh 2>&1 /var/log/reval.log 2> /var/log/reval.err
    • B、annualreval.sh 1>/var/log/reval.log 2>/var/log/reval.err
    • C、annualreval.sh 2>>&1 /var/log/reval.log /var/log/reval.err
    • D、annualreval.sh 1>>/var/log/reval.log 2>/var/log/reval.err

    正确答案:D

  • 第7题:

    单选题
    You install a copy of Mysql 5.6.13 on a brand new Linux server by using RPM packages. The server starts successfully as verified by the following commands: $ pidof mysqld 3132 $tail – n2 /var/lib.mysql/hostname.err 2013-08-18 08:18:38 3132 [Note] /usr/sbin/mysqld:ready for connections. Version: '5.6.13-enterprise-commercial-advaced' socket:'/tmp/mysql.sock' port; 3306 Mysql Enterprise Server – Advanced Edition (Commercial) You attempt to log in as the root user with the following command: $mysql – u root ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) Which statement is true about this scenario?()
    A

    The RPM installation script sets a default password of password for new installations

    B

    The local root user must log in with a blank password initially: mysql –u root –p

    C

    New security measures mean that the mysql_secure_installation script must be run first on all new installations

    D

    The mysql_install_bd post-installation script used – random-password


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

  • 第8题:

    单选题
    You have created a script in the recovery catalog called backup_database. Which of the following commands would successfully execute that script?()
    A

     run { open script backup_database; run script backup_database }

    B

     run { engage script backup_database; }

    C

     run { run script backup_database; }

    D

     Run { execute script backup_database; }

    E

     The name backup_database is an invalid name for an RMAN script. Trying to run it from RMAN would result in an error.


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

  • 第9题:

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


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

  • 第10题:

    单选题
    You work as a database administrator for Certkiller .com. While loading data into the Certkiller STAFF table using Oracle Enterprise Manager 10g Database Control, you find the status of the job as failed. On further investigation, you find the following error message in the output log: ORA-01653 unable to extend table HR. Certkiller STAFF by 8 intablespaceUSERS Which task would you perform to load the data successfully without affecting the users who are accessing the table?()
    A

    Restart the database instance and run the job

    B

    Truncate the Certkiller STAFF table and run the job

    C

    Delete all rows from the Certkiller STAFF table and run the job

    D

    Increase the size of the USERStablespacethe and run the job

    E

    Increase the size of the database default permanenttablespaceand run the job


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

  • 第11题:

    单选题
    Which of the following commands will display what space is used in /tmp filesystem?()
    A

    df -Ik /tmp

    B

    df -fk /tmp

    C

    df -Uk /tmp

    D

    df -Fk /tmp


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

  • 第12题:

    单选题
    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
    解析: 暂无解析

  • 第13题:

    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

  • 第14题:

    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

  • 第15题:

    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

  • 第16题:

    You have created a script in the recovery catalog called backup_database. Which of the following commands would successfully execute that script?()  

    • A、 run { open script backup_database; run script backup_database }
    • B、 run { engage script backup_database; }
    • C、 run { run script backup_database; }
    • D、 Run { execute script backup_database; }
    • E、 The name backup_database is an invalid name for an RMAN script. Trying to run it from RMAN would result in an error.

    正确答案:D

  • 第17题:

    You work as a database administrator for Certkiller .com. While loading data into the Certkiller STAFF table using Oracle Enterprise Manager 10g Database Control, you find the status of the job as failed. On further investigation, you find the following error message in the output log: ORA-01653 unable to extend table HR. Certkiller STAFF by 8 intablespaceUSERS Which task would you perform to load the data successfully without affecting the users who are accessing the table?()

    • A、Restart the database instance and run the job
    • B、Truncate the Certkiller STAFF table and run the job
    • C、Delete all rows from the Certkiller STAFF table and run the job
    • D、Increase the size of the USERStablespacethe and run the job
    • E、Increase the size of the database default permanenttablespaceand run the job

    正确答案:D

  • 第18题:

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


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

  • 第19题:

    单选题
    A System p administrator needs to run the annualreval.sh script, directing standard error to /var/log/reval.err, and appending standard out to /var/log/reval.log.  How can this be accomplished ()
    A

    annualreval.sh 2>&1 /var/log/reval.log 2> /var/log/reval.err

    B

    annualreval.sh 1>/var/log/reval.log 2>/var/log/reval.err

    C

    annualreval.sh 2>>&1 /var/log/reval.log /var/log/reval.err

    D

    annualreval.sh 1>>/var/log/reval.log 2>/var/log/reval.err


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

  • 第20题:

    单选题
    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
    解析: 暂无解析

  • 第21题:

    单选题
    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
    解析: 暂无解析

  • 第22题:

    单选题
    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
    解析: 暂无解析

  • 第23题:

    单选题
    Which of the following will permit an operator to retrieve console log output from the command line?()
    A

    lscons -l

    B

    cat /var/conslog

    C

    alog -t console -o

    D

    lslog /var/adm/conslog


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

  • 第24题:

    单选题
    To which directory does the Junos OS write traceoptions files?()
    A

    /var/tmp/

    B

    /var/

    C

    /var/log/

    D

    /var/home/<username>/


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