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


您可能感兴趣的试卷

你可能感兴趣的试题

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

3.单项选择题

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.

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

8.单项选择题

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.

9.单项选择题

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

10.单项选择题

Review the following program.

What is the possible problem?()

A.#!/bin/ksh line is missing
B.Variable name VAR is not properly initialized
C.Loop variable is not incremented inside the loop
D.Loop variable is not decremented inside the loop

最新试题

How can permissions be set up on /tmp so that a user cannot delete another user’s files?()

题型:单项选择题

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?()

题型:单项选择题

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

题型:单项选择题

Given the following scripts, both found in /usr/local/bin, what would the output be when executing /usr/local/bin/script1?()

题型:单项选择题

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?()

题型:单项选择题

Which action changes the default editor for ALL users on the system from vi to edit of the following?()

题型:单项选择题

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

题型:单项选择题

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

题型:单项选择题

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?()

题型:单项选择题

Which command can a system administrator use to verify that a tape is in backup format and is readable by the system?()

题型:单项选择题