A../myscript >> /tmp/myoutput
B../myscript 2>&1 /tmp/myoutput
C../myscript > /tmp/myoutput 2>&1
D../myscript > /tmp/myoutput &1>2
您可能感兴趣的试卷
你可能感兴趣的试题
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
A 1500 page print job was sent to the "pcl" queue. The job was running for several minutes before it was determined that the job was not needed. What can be done to delete the job?()
A.kill 201
B.cancel 201
C.disable pcl
D.rm /var/spool/lpd/STDIN.27648
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.
Given the following scripts, both found in /usr/local/bin, what would the output be when executing /usr/local/bin/script1?()
A.dog cat
B.dog fish
C.mouse cat
D.mouse fish
A.chmod +s /tmp
B.chmod 775 /tmp
C.chmod 1777 /tmp
D.chmod 4755 /tmp
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.-rwxrw-rw- 1 database appsrvr 4913 Mar 17 08:24 control_file
B.-rw-r--r-- 1 appsrvr database 4913 Mar 17 08:24 control_file
C.-rw-r--r-- 1 database appsrvr 4913 Mar 17 08:24 control_file
D.-rwxrw-rw- 1 appsrvr database 4913 Mar 17 08:24 control_file
A.chmod -R 775 /stuff
B.chmod -h 002 /stuff
C.chmod -R 577 /stuff
D.chmod ug+rwx,o+rx /stuff
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.
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
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?()