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