1Z0-876 | Rebirth 1Z0-876 Exam Study Guides With New Update Exam Questions


Q41. Wally has two files with data about dark and light coffee beans. The data is stored in the files named dark_beans and light_beans. The files are in the coffee directory of Wally's home directory. Wally would like to display a sorted list of all of the words from both lists that start with the letter "g" or "G". The files contain mixed case names. Which command line can Wally use to display the data?

A. sort ./coffee/dark_beans ./coffee/light_beans | grep ^[Gg]

B. cat ./coffee/dark_beans ./coffee/light_beans | grep -i G | sort

C. sort -f ./coffee/dark_beans ./coffee/light_beans | grep g

D. sort ./coffee/dark_beans ./coffee/light_beans | grep -i g

Answer: A

Q42. Wally has a file with data about various coffee plants, the data is stored in a file named plants, the file is in the coffee directory of Wally's home directory. He wants to find the number of entries that are NOT the plant "Gallienii" or "gallienii". Choose the command that Wally might use to extract the information from the file.

A. grep -v Gallienii ./coffee/plants | wc -l

B. grep -nv Gallienii ./coffee/plants| wc -l

C. find ./coffee/plants ( !G* -o !g* ) | wc -l

D. grep -ivn Gallienii ./coffee/plants| wc -l

E. grep -vc Gallienii ./coffee/plants | wc -l

Answer: D

Q43. Frank is trying to remove all files from a directory. The result of the rm command is shown:

$ rm *

rm: remove new_car_data (yes/no)?

Choose the command that might allow Frank to use the rm command without being prompted for each file.

A. unalias rm

B. rm -i

C. clear rm

D. rm -a 'rm -i'

Answer: A

Q44. 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

Q45. What are the minimum number of characters that a regular user must use when creating a password?

A. 0

B. 2

C. 4

D. 6

E. 8

Answer: D

Q46. Jim is considering using a different shell. One of the shell features that Jim would like to use is the tilde (~) metacharacter, used to move to the user's home directory. Choose the shell that does NOT support the tilde (~) metacharacter.

A. Korn Shell (ksh)

B. TC Shell (tcsh)

C. C Shell (csh)

D. Z shell (zsh)

E. Bourne Shell (sh)

Answer: E

Q47. Click the Exhibit button.

 

Examine the exhibit. Choose the answer the best describes the 8th field of the output of an ls command.

A. file creation time

B. inode change time

C. last access time

D. last modify time

Answer: D

Q48. Which grep program is used to search for literal strings and does not interrupt regular expressions?

A. grep

B. lgrep

C. egrep

D. fgrep

Answer: D

Q49. Click the Exhibit button.

 

Wally is using a Korn shell, and is writing a report for a customer. The report contains instructions on how to use a set of scripts that he has created for this customer. 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. From the information in the exhibit, choose the script that was last running in the foreground.

A. ./makecert

B. ./crypttool.sh confidential-report

C. ./affiliate

D. vi cust-report

Answer: B

Q50. The mt command is used to control a tape device. Which operation is NOT supported by the mt command?

A. Move to a specific record location on a tape.

B. Write a configuration file to the device.

C. Display the current status of a tape device.

D. Erase the entire contents of a tape.

Answer: B