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?
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?
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?
Answer : A
Which positional parameter holds the value of the number of positional parameters?
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.
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.
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.
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.
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.)
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?
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.)
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?
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?
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.
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?
Answer : B