itgle.com

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


相似考题
参考答案和解析
参考答案:A
更多“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?() ”相关问题
  • 第1题:

    A network administrator needs to allow only one Telnet connection to a router. For anyone viewing the configuration and issuing the show run command, the password for Telnet access should be encrypted. Which set of commands will accomplish this task?()

    A.

    B.

    C.

    D.


    参考答案:C

  • 第2题:

    Which task would you perform before you run Oracle Universal Installer (OUI) in silent or suppressed mode foran installation?()

    • A、Run the root.sh script.
    • B、Create the oraInst.loc file.
    • C、Create the tnsnames.ora file.
    • D、Run the oraInstRoot.sh script.

    正确答案:B

  • 第3题:

    Which of the following commands will be run at a command prompt to determine which WindowsOS is running on the computer?()

    • A、VER
    • B、Device Manager
    • C、VERIFY
    • D、SET

    正确答案:A

  • 第4题:

    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

  • 第5题:

    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

  • 第6题:

    What will be the result of attempting to compile and run the following program?()   public class Q28fd {   public static void main(String args[]) {   int counter = 0;   l1:   for (int i=10; i<0; i--) {   l2:  int j = 0;   while (j < 10) {   if (j > i) break l2;   if (i == j) {   counter++;   continue l1;   }   }   counter--;   }   System.out.println(counter);  }   }   

    • A、The program will fail to compile.
    • B、The program will not terminate normally.
    • C、The program will write 10 to the standard output.
    • D、The program will write 0 to the standard output.
    • E、The program will write 9 to the standard output.

    正确答案:A

  • 第7题:

    Which task would you perform before you run Oracle Universal Installer (OUI) in silent or suppressedmode for an installation()

    • A、Run the root.sh script.
    • B、Create the oraInst.loc file.
    • C、Create the tnsnames.ora file.
    • D、Run the oraintRoot.sh script.

    正确答案:B

  • 第8题:

    单选题
    What will be the result of attempting to compile and run the following program?()   public class Q28fd {   public static void main(String args[]) {   int counter = 0;   l1:   for (int i=10; i i) break l2;   if (i == j) {   counter++;   continue l1;   }   }   counter--;   }   System.out.println(counter);  }   }
    A

    The program will fail to compile.

    B

    The program will not terminate normally.

    C

    The program will write 10 to the standard output.

    D

    The program will write 0 to the standard output.

    E

    The program will write 9 to the standard output.


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

  • 第9题:

    单选题
    An  administrator  must  verify  all  filesets  are  completely  installed  before  an  upgrade.   Which  of  the following commands will perform this task()
    A

    Islpp -v

    B

    Ippchk -v

    C

    installp -v

    D

    instfix -v


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

  • 第10题:

    单选题
    An operator needs to change from the /usr/bin to the /var/spool directory. Which of the following commands will accomplish this?()
    A

    cd /var/spool

    B

    lcd /var/spool

    C

    cd /usr/bin /var/spool

    D

    lcd /usr/bin /var/spool


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

  • 第11题:

    单选题
    Which of the following commands must be issued to remove a stored script from the recovery catalog?()
    A

    DELETE SCRIPT

    B

    ERASE SCRIPT

    C

    REMOVE SCRIPT

    D

    UNCATALOG SCRIPT


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

  • 第12题:

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


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

  • 第13题:

    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

  • 第14题:

    What will be the result of attempting to compile and run the following code?()   public class Q6b0c {   public static void main(String args[]) {  int i = 4;  float f = 4.3;   double d = 1.8;   int c = 0;   if (i == f) c++;   if (((int) (f + d)) == ((int) f + (int) d))  c += 2;   System.out.println(c);   }   }  

    • A、The code will fail to compile.
    • B、0 will be written to the standard output.
    • C、1 will be written to the standard output.
    • D、2 will be written to the standard output.
    • E、3 will be written to the standard output.

    正确答案:A

  • 第15题:

    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

  • 第16题:

    An operator wants to move all files inside the directory /home/operator to the current directory. Which of the following commands will complete the task?()

    • A、mv /home/operator .
    • B、mv /home/operator/* .
    • C、mv /home/operator ../..
    • D、mv /home/operator/all ../home/operator

    正确答案:B

  • 第17题:

    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

  • 第18题:

    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

  • 第19题:

    单选题
    Which task would you perform before you run Oracle Universal Installer (OUI) in silent or suppressedmode for an installation()
    A

    Run the root.sh script.

    B

    Create the oraInst.loc file.

    C

    Create the tnsnames.ora file.

    D

    Run the oraintRoot.sh script.


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

  • 第20题:

    单选题
    What will be the result of attempting to compile and run the following code?()   public class Q6b0c {   public static void main(String args[]) {  int i = 4;  float f = 4.3;   double d = 1.8;   int c = 0;   if (i == f) c++;   if (((int) (f + d)) == ((int) f + (int) d))  c += 2;   System.out.println(c);   }   }
    A

    The code will fail to compile.

    B

    0 will be written to the standard output.

    C

    1 will be written to the standard output.

    D

    2 will be written to the standard output.

    E

    3 will be written to the standard output.


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

  • 第21题:

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


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

  • 第22题:

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


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

  • 第23题:

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