niusouti.com

单选题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”相关问题
  • 第1题:

    An administrator has added a new device to a system and wants to determine if it has been correctly added to the ODM database. Which command would the system administrator use?()

    • A、odmget
    • B、odmadd
    • C、odmshow
    • D、odmcreate

    正确答案:A

  • 第2题:

    A system administrator completed an upgrade of the maintenance level of their AIX system. Which of the following commands should be run to verify that the operating system is in a consistent state?()

    • A、instfix -i
    • B、lslpp -l
    • C、lppchk -v
    • D、oslevel -r

    正确答案:C

  • 第3题:

    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

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

    If a system administrator wants to show only a disk report for disk2, at two second intervals, what is the correct command to run?()

    • A、 iostat disk1 1 
    • B、 iostat -d disk1 2 
    • C、 iostat disk2 1 
    • D、 iostat -d disk2 2

    正确答案:D

  • 第6题:

    The system hangs at boot time after starting NFS services. What is the most likely cause?() 

    • A、The action parameter of rcnfs in /etc/inittab is ’off’ and the script called is not exiting.
    • B、The action parameter of rcnfs in /etc/inittab is ’wait’ and the script called is not exiting.
    • C、The action parameter of rcnfs in /etc/inittab is ’once’ and the script called is not exiting.
    • D、The action parameter of rcnfs in /etc/inittab is ’respawn’ and the script called is not exiting

    正确答案:B

  • 第7题:

    A user has written a script that is not running correctly and asks an administrator for help. Without adding anything to the script, how can the administrator determine the cause of the problem?()

    • A、Run the script with an 'sh -x' in front.
    • B、Run the script with a 'ksh -v' in front.
    • C、Type debug into the command line before running the script.
    • D、Type 'set -x' into the command line before running the script.

    正确答案:A

  • 第8题:

    Your network has 1,000 client computers that run Windows 7.    You need to install an application, in the Local System account context,on the client computers.   What are two possible ways to achieve this goal?() 

    • A、Configure a logon script.
    • B、Configure a logoff script.
    • C、Configure a startup script.
    • D、Configure a shutdown script.

    正确答案:C,D

  • 第9题:

    A system administrator has just applied an update to an AIX system to correct a problem, The APAR number is IX49035 and was shipped as part of the PTF number U437542. After applying the APAR fix, the administrator wants to ensure that the fix is applied before informing the system users of the corrected problem. Which of the following commands should the system administrator run to verify that the APAR fix has been applied to the system?()

    • A、lslpp -f IX49035
    • B、lslpp -fB U437542
    • C、instfix -f IX49035
    • D、instfix -ik IX49035

    正确答案:D

  • 第10题:

    单选题
    If a system administrator wants to show only a disk report for disk2, at two second intervals, what is the correct command to run?()
    A

     iostat disk1 1 

    B

     iostat -d disk1 2 

    C

     iostat disk2 1 

    D

     iostat -d disk2 2


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

  • 第11题:

    单选题
    Which command will run myscript and redirect stdout and sterr to /tmp/myoutput?()
    A

    ./myscript >> /tmp/myoutput

    B

    ./myscript 2>&1 /tmp/myoutput

    C

    ./myscript > /tmp/myoutput 2>&1

    D

    ./myscript > /tmp/myoutput &1>2


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

  • 第12题:

    单选题
    You are the network administrator for your domain at TestKing.com. All servers run Windows Server 2003. You manage a server named TestKing7. You create a script named TestKingDataBackup.cmd on TestKing7 that contains Ntbackup commands for 10 separate backup jobs. You use the AT command from your client computer to schedule and run backups on TestKing7. You also use Automated System (ASR) on TestKing7. A user, Tess King, reports that several directories are missing from TestKing7. You establish that you need to restore all 10 backup jobs. You need to restore the data with the least amount of administrative effort. What should you do?()
    A

    From your client computer, modify the TestKingDataBackup.cmd script to restore data. Use the AT command to run the script.

    B

    Log on to TestKing7 and use the Backup utility to restore the first backup job. Repeat for each job.

    C

    Log on to TestKing7 and modify the TestKingDataBackup.cmd script to restore data. Use the AT command to run the script.

    D

    Use ASR to restore the system.


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

  • 第13题:

    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

  • 第14题:

    A system administrator wants to configure a system so that all new users will be put into the database group by default. How would this be accomplished?()

    • A、remove all other groups from the system
    • B、run the command mkuser -default "GROUP=database"
    • C、change the default group in /usr/lib/security/mkuser.default
    • D、edit /etc/security/group to move all users to the database stanza

    正确答案:C

  • 第15题:

    After mirroring rootvg, a system administrator wants to validate that the system will boot correctly. Which of the following tasks must be performed before changing the boot order?()

    • A、Run a bosboot -a command
    • B、Mirror the hd5 on the two disks
    • C、Set up another service mode bootlist
    • D、Check the disks using a lsvg -p rootvg command

    正确答案:C

  • 第16题:

    A system administrator has a filesystem called /test/data in volume group datavg. Which of the following commands will allow the administrator to create a mirrored copy of the filesystem’s data?()

    • A、chfs
    • B、chlv
    • C、mklvcopy
    • D、mkfscopy

    正确答案:C

  • 第17题:

    The system hangs at boot time after starting NFS services.What is the most likely cause?()

    • A、The action parameter of rcnfs in /etc/inittab is 'off' and the script called is not exiting.
    • B、The action parameter of rcnfs in /etc/inittab is 'wait' and the script called is not exiting.
    • C、The action parameter of rcnfs in /etc/inittab is 'once' and the script called is not exiting.
    • D、The action parameter of rcnfs in /etc/inittab is 'respawn' and the script called is not exiting.

    正确答案:B

  • 第18题:

    An administrator wants to test the performance of an application at different memory sizes.  What is the most effective way to perform the test and collect statistical information for each test?()  

    • A、Run DLPAR to change the LPAR memory for each test.
    • B、Run rmss command to simulate different memory for each test.
    • C、Run chdev command to limit the system memory size for each test.
    • D、Run chattr command to limit the system memory size for each test.

    正确答案:B

  • 第19题:

    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

  • 第20题:

    Which command will run myscript and redirect stdout and sterr to /tmp/myoutput?()

    • A、./myscript >> /tmp/myoutput
    • B、./myscript 2>&1 /tmp/myoutput
    • C、./myscript > /tmp/myoutput 2>&1
    • D、./myscript > /tmp/myoutput &1>2

    正确答案:C

  • 第21题:

    单选题
    Which of the following files must be customized to run a script that further configures the system upon completion of a mksysb install?()
    A

    auto.u

    B

    inst.data

    C

    bos.autoi

    D

    bosint.data


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

  • 第22题:

    单选题
    The system hangs at boot time after starting NFS services.What is the most likely cause?()
    A

    The action parameter of rcnfs in /etc/inittab is 'off' and the script called is not exiting.

    B

    The action parameter of rcnfs in /etc/inittab is 'wait' and the script called is not exiting.

    C

    The action parameter of rcnfs in /etc/inittab is 'once' and the script called is not exiting.

    D

    The action parameter of rcnfs in /etc/inittab is 'respawn' and the script called is not exiting.


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

  • 第23题:

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

  • 第24题:

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