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


您可能感兴趣的试卷

你可能感兴趣的试题

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

2.单项选择题A user’s print jobs default to PRINTER_A.The user wants to change their default printer to PRINTER_B.How can the system administrator change the user’s default printer to PRINTER_B?()

A.Execute the command ’piobe -q PRINTER_B’
B.Edit the user’s stanza in the /etc/qconfig file
C.Execute the command ’chuser -a QUEUE=PRINTER_B user’
D.Add the line ’export PRINTER=PRINTER_B’ to the user’s .profile

4.单项选择题

Given the following scripts, what output would be generated?()

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

6.单项选择题How can permissions be set up on /tmp so that a user cannot delete another user’s files?()

A.chmod +s /tmp
B.chmod 775 /tmp
C.chmod 1777 /tmp
D.chmod 4755 /tmp

9.单项选择题

A user reports that they cannot cd to /tmp/application. A system administrator entered the following command:  
(1)ls -ld /tmp/application  
(2)drw-r--r-- 4 root system 512 Jan 15 14:09 application  
What is the most likely cause of the problem?()

A.The /tmp/application should be globally writable.
B.The /tmp/application directory should be executable.
C.The /tmp/application directory should be owned by the user.
D.The /tmp/application directory should have the sticky bit set.

10.单项选择题

Given the following script, why does the output come out as an empty line instead of "dog"?()

A.The $VAR variable was not exported
B.The $VAR should have been set as VAR
C.dog needs double quotes around it when setting $VAR
D.The { } should not be around VAR in the echo command

最新试题

While installing an application, the administrator is instructed to perform two final tasks prior to starting the application:  1.Set the ownership of a file named ’control_file’ to be owned by the user ’database’ and the group ’appsrvr’.  2.Change the permissions of ’control_file’ to 0766.  After these two tasks have been completed, what will the file permissions look like when ’ls -l control_file’ is executed?()

题型:单项选择题

A system administrator is attempting to restore some files from a backup tape. The restore failed. The system administrator suspects the block size of the tape drive is incorrect. Which of the following commands can be used to determine the block size of the backup tape?()

题型:单项选择题

A company uses raw logical volumes. Which command can be used to back up the data in the raw logical volumes to a tape?()

题型:单项选择题

A system administrator performs a full backup every Saturday evening and incremental backups the rest of the week. The system failed on Thursday and needs to be restored. Which backup tapes will be required to restore the system to its most recent recoverable state?()

题型:单项选择题

Given the following scripts, what output would be generated?()

题型:单项选择题

A system administrator has an application that has the data in volume group appvg. Which of the following commands will back up the contents of appvg to the tape in /dev/rmt0 and check for any read errors?()

题型:单项选择题

Which command restarts the TCP/IP subsystem?()

题型:单项选择题

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

题型:单项选择题

For security reasons, an administrator is asked to modify the system to prevent someone from leaving a terminal logged in. To enable a five minute timeout for all users, what would need to be done to accomplish this task?()

题型:单项选择题

How would a system administrator review root’s current cron jobs of the following?()

题型:单项选择题