Oracle Solaris Certified Associate Exam v6.0 (1z0-876)

Page:    1 / 11   
Total 157 questions

Click the Exhibit button.
The exhibit shows the first few lines of a system run control script. What is the meaning of the -d in the test expression?

  • A. If the first expression is true.
  • B. If the /usr/bin directory exists.
  • C. If the first expression evaluates to false.
  • D. If /usr/bin contains the exit command.


Answer : B

Click the Exhibit button.
Wally is using a Korn shell, and is writing a report for his customers. The report contains instructions on how to use a set of scripts that he has created for the customers to use. The scripts are all interactive. Wally is running the scripts while creating the report so he can cut and paste the user prompts into his document. Wally executes the following command:
$ fg
Which job will be placed in the foreground of the shell?

  • A. ./makecert
  • B. ./crypttool.sh confidential-report
  • C. ./affiliate
  • D. vi cust-report


Answer : B

Click the Exhibit button.
The exhibit shows the first few lines of a system run control script. In which shell is this script executed?

  • A. Bourne Shell
  • B. Z Shell
  • C. C Shell
  • D. Korn Shell
  • E. Bash Shell


Answer : A

Which positional parameter holds the value of the number of positional parameters?

  • A. $0
  • B. $*
  • C. $#
  • D. $@


Answer : C

Wally created the following aliases.
printall='pr * | lpr'
pa=printall
Choose the answer that best describes what the result will be when Wally uses the pa alias.

  • A. The string printall will be displayed.
  • B. The command not found error message will be displayed.
  • C. The value of the printall alias will be displayed.
  • D. The printall alias will execute.


Answer : D

Jim wants to alias the grep command to the string search. Choose the command that Jim should add to his . kshrc file to accomplish this alias.

  • A. alias search = 'grep -i'
  • B. alias search='grep -i'
  • C. alias search ='grep -i'
  • D. alias search=`grep -i`


Answer : B

Click the Exhibit button.
While working in his home directory, Wally executes the commands shown in the exhibit.
Wally needs to execute a find command that he had previously executed. He is using a ksh shell. Choose the command which will execute the find command again.

  • A. r 163
  • B. !find
  • C. !!find
  • D. r -f


Answer : A

Wally wants to quickly create a file that stores some information about a upcoming meeting. Wally is on the phone with his customer and doesn't want to interrupt the conversation to find a pen or pencil. Choose the command sequence that Wally might use on his system to store this information.

  • A. cat < meeting.txt <return>Monday, the 23 rd , 10:00 AM <return><crtl + d>
  • B. cat > meeting.txt <return>Monday, the 23 rd , 10:00 AM <return><crtl + c>
  • C. cat < meeting.txt <return>Monday, the 23 rd , 10:00 AM <return><crtl + c>
  • D. cat > meeting.txt <return>Monday, the 23 rd , 10:00 AM <return><crtl + d>


Answer : D

Click the Exhibit button.
The exhibit is a listing of your current directory. You need to place the file sonic into the directory dir1 and rename the file to game, while removing the original file. Choose the commands that will accomplish this task. (Choose two.)

  • A. cp ./sonic /widgets/dir1/game ; rm sonic
  • B. mv /sonic widgets/dir1/game
  • C. cp /sonic widgets/dir1/game ; rm /sonic
  • D. mv sonic widgets/dir1/game
  • E. cp ./widgets/dir1/sonic /game; rm -r sonic
  • F. mv sonic ./dir1/game
  • G. cp ./sonic ./widgets/dir1/game ; rm ./sonic
  • H. mv /sonic /widgets/dir1/ ; rm ./sonic


Answer : D,G

While working in his home directory Jim lists the directory contents with the following result:
From this list of files, which file is executable?

  • A. affiliates
  • B. fixes
  • C. expenses
  • D. phone-list
  • E. windfil
  • F. yearly-report


Answer : A

You have a file named customer1 and you need to examine the file in read only mode using the vi editor. Which two commands will open the file in the vi editor as read only?
(Choose two.)

  • A. view customer1
  • B. vi -ro customer1
  • C. vi -RO customer1
  • D. view -ro customer1
  • E. vi -R customer1
  • F. vi -r customer1


Answer : A,E

Val wants to change the permissions on a file to remove access for all user that are not in the file's group. She also wants the group permissions to allow the file to have read and write access. Val can currently read and write the file. Which octal mode with the chmod command will set those permissions?

  • A. chmod 664 ./data
  • B. chmod 660 ./data
  • C. chmod 775 ./data
  • D. chmod 550 ./data


Answer : B

You have a file that contains a list of parts in a single column. You need to append the text string .ex2009 to each entry. You will use the vi editor and the last line mode to append this text to each entry. Which command will add the text correctly?

  • A. :%s/*/.ex2009/
  • B. :%s/.$/.ex2009/
  • C. :%s/$/.ex2009/
  • D. :%s/*$/.ex2009/


Answer : C

Click the Exhibit button.
The exhibit shows information about data in Jane's home directory. Jane wants to delete, from her home directory, the directory named widgets and this directory's contents. Select the command that would best work to achieve Jane's goal.

  • A. rm -r ./widgets
  • B. rmdir ./widgets
  • C. rm * ./widgets
  • D. rmdir -r *
  • E. rmdir -r ./widgets
  • F. rm -r *


Answer : A

You own a file that is part of a web development project. This file is shared by the group permission among the members of the web development group called webdev. The world permissions for the file are set to read only for security reasons. You wish to give write access on the file for a contractor not in the webdev group. You do not have root access.
Which method describes how you can grant write permissions to the contractor's user ID?

  • A. Edit the /etc/group file and add the contractor's user ID to the group.
  • B. Create a owner ACL for the contractor's user ID.
  • C. Add a mandatory access control for the contractor's user ID.
  • D. The world or group permissions must be modified by root.


Answer : B

Page:    1 / 11   
Total 157 questions