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

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


相似考题
更多“单选题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 21 /var/log/reval.log 2 /var/log/reval.e”相关问题
  • 第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


    参考答案:A

  • 第2题:

    如何查看Linux系统的启动后,所产生的Kernel日志信息()。

    • A、dmesg
    • B、cat/var/log/messages
    • C、cat/var/log/boot.log
    • D、cat/var/log/secure

    正确答案:A,B

  • 第3题:

    Which log file shows previous installation information? ()

    • A、 /var/adm/ras/bosinstlog 
    • B、 /var/adm/ras/devinst.log 
    • C、 /var/adm/rshlog 
    • D、 /var/adm/sulog

    正确答案:B

  • 第4题:

    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

  • 第5题:

    A System p administrator suspects they are receiving an error from one of their nightly cron jobs. The  job is: 0 1 * * * /usr/local/bin/nightlycheck.pl Where should the administrator first look for errors reported by  this cron job()

    • A、/var/log/syslog.out
    • B、var/log/cron.log
    • C、/var/spool/cron/logs
    • D、mail

    正确答案:D

  • 第6题:

    Which of the following statements best describes error logging?()

    • A、Syslogd creates error log entries in the system error log. 
    • B、The default error log is stored in /var/adm/ras/error.log. 
    • C、All entries in the error log are related to software problems. 
    • D、Error logging is automatically enabled during system initialization.

    正确答案:D

  • 第7题:

    What is the primary syslog file?()

    • A、/var/syslog-file
    • B、/var/syslog
    • C、/var/log/messages
    • D、/log-file

    正确答案:C

  • 第8题:

    单选题
    下列哪些日志记录了系统的警告信息()。
    A

    /var/log/vsftp.log

    B

    /var/log/messages

    C

    /var/log/http.log

    D

    /var/log/boot.log


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

  • 第9题:

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

  • 第10题:

    单选题
    A System p administrator noticed several error messages on the screen while the system was booting up; but was not able to write them down.  Where should the system administrator look for the console log, assuming it is in the default location()
    A

    /var/log/conslog

    B

    /var/log/console.log

    C

    /var/adm/ras/conslog

    D

    /var/ras/console.log


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

  • 第11题:

    单选题
    What is the primary syslog file?()
    A

    /var/syslog-file

    B

    /var/syslog

    C

    /var/log/messages

    D

    /log-file


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

  • 第12题:

    单选题
    A System p administrator suspects they are receiving an error from one of their nightly cron jobs. The  job is: 0 1 * * * /usr/local/bin/nightlycheck.pl Where should the administrator first look for errors reported by  this cron job()
    A

    /var/log/syslog.out

    B

    var/log/cron.log

    C

    /var/spool/cron/logs

    D

    mail


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

  • 第13题:

    在RHEL5系统中,对于没有使用独立日志文件的一些服务程序,通常会将日志消息发送到公共日志文件( )中。

    A. /var/log/dmesg

    B. /var/log/messages

    C. /var/log/public

    D. /var/run/utmp


    参考答案B

  • 第14题:

    命令“grep’error’/var/log/messages”的作用是()

    • A、在/var/log/messages文件中搜索并显示带有字符串“error”
    • B、在/var/log/messages目录下搜索状态为error的文件
    • C、修复/var/log/messages文件中包含的错误
    • D、以root用户身份强行打开当前状态为error的/var/log/secure文件

    正确答案:A

  • 第15题:

    A system administrator noticed several error messages on the screen while the system was booting up; but was not able to write them down. Where should the system administrator look for the console log, assuming it is in the default location?()

    • A、/tmp/conslog
    • B、/etc/console.log
    • C、/var/adm/ras/conslog
    • D、/var/ras/console.log

    正确答案:C

  • 第16题:

    下列哪些日志记录了系统的警告信息()。

    • A、/var/log/vsftp.log
    • B、/var/log/messages
    • C、/var/log/http.log
    • D、/var/log/boot.log

    正确答案:B

  • 第17题:

    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

  • 第18题:

    A System p administrator noticed several error messages on the screen while the system was booting up; but was not able to write them down.  Where should the system administrator look for the console log, assuming it is in the default location()

    • A、/var/log/conslog
    • B、/var/log/console.log
    • C、/var/adm/ras/conslog
    • D、/var/ras/console.log

    正确答案:C

  • 第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

    正确答案:D

  • 第20题:

    单选题
    A System p administrator suspects they are receiving an error from one of their nightly cron jobs. Thejob is: 0 1 * * * /usr/local/bin/nightlycheck.pl Where should the administrator first look for errors reported by this cron job()
    A

    /var/log/syslog.out

    B

    /var/log/cron.log

    C

    /var/spool/cron/logs

    D

    mail


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

  • 第21题:

    单选题
    A system administrator noticed several error messages on the screen while the system was booting up; but was not able to write them down. Where should the system administrator look for the console log, assuming it is in the default location?()
    A

    /tmp/conslog

    B

    /etc/console.log

    C

    /var/adm/ras/conslog

    D

    /var/ras/console.log


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

  • 第22题:

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

  • 第23题:

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

  • 第24题:

    单选题
    Which of the following statements best describes error logging?()
    A

    Syslogd creates error log entries in the system error log. 

    B

    The default error log is stored in /var/adm/ras/error.log. 

    C

    All entries in the error log are related to software problems. 

    D

    Error logging is automatically enabled during system initialization.


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