Ensurepass

QUESTION 41

Which of the following chown commands will change the ownership to foo and the group to bar on a file named biglist?

 

A. chown foo/bar biglist

B. chown -u foo -g bar biglist

C. chown foo:bar biglist

D. chown –user foo –group bar biglist

 

Answer: C

 

 

QUESTION 42

To allow a regular user account to mount and unmount a filesystem (for instance, a cdrom or floppy), which of the following options will need to be added to the corresponding line in /etc/fstab?

 

A. nouidchk

B. alluser

C. user

D. auto

 

Answer: C

 

 

QUESTION 43

 

A. administrator is trying to make a hard link to an ordinary file but ln returns an error. Which of the following could cause this?

 

A. The source file is hidden.

B. The source file is read-only.

C. The source file is a shell script.

D. The administrator does not own the source file.

E. The source and the target are on different filesystems.

 

Answer: E

 

 

QUESTION 44

Which of the following commands will print to standard out only the lines that do not begin with # (pound symbol) in the file foobar?

 

A. /bin/grep ^# foobar

B. /bin/grep -v ^# foobar

C. /bin/grep #$ foobar

D. /bin/grep -v #$ foobar

 

Answer: B

 

 

QUESTION 45

For which of the following can the tee command be used?

 

A. Print the contents of a file in reverse order.

B. Use the output of one command as arguments to another.

C. Add line numbers to the output of a command.

D. Pipe the output of one command into the input of another.

E. Send a command’s output to stdout and a to file at the same time.

 

Answer: E

 

 

QUESTION 46 CORRECT TEXT

The dpkg-____ command will ask configuration

 

QUESTIONs for a specified package, just as if the package were being installed for the first time.

 

Answer: reconfigure

 

 

QUESTION 47 CORRECT TEXT

Which command is used to enable disk quotas on a particular filesystem? (Provide only the command, with no options or parameters)

 

Answer: /sbin/quotaon,quotaon

 

 

QUESTION 48 CORRECT TEXT

 

A. administrator has downloaded an image file of a boot floppy disk to a hard drive. What is the BEST utility to create a boot floppy from the disk image? (Specify a single command without options.)

 

Answer: /bin/dd,dd

 

 

QUESTION 49

In bash, inserting 1>&2 after a command redirects: A. standard error to standard input.

B. standard input to standard error.

C. standard output to standard error.

D. standard error to standard output.

E. standard output to standard input.

 

Answer: C

 

 

QUESTION 50

 

A. administrator has created a really long letter and after the administrator is done, notices that the name “Bob” has been used many times. The administrator forgot to capitalize it in many instances. Which of the following commands would replace “bob” with “Bob” in all instances and generate a new letter for printing?

 

A. sed ‘/bob/Bob’ letter > newletter

B. sed s/bob/Bob/ letter < newletter

C. sed ‘s/bob/Bob’ letter > newletter

D. sed ‘s/bob/Bob/g’ letter > newletter

E. sed ‘s/bob, Bob/’ letter > newletter

 

Answer: D

 

 

Comments are closed.