Exam4Training

Lpi 702-100 Linux Professional Institute BSD Specialist Online Training

Question #1

Consider the following file legal file:

disclosure

non-disclosure

non-disclosure

Which line or lines in the file does the following command match? Note the space after the dash within the brackets.

grep "non [-] disclosure" legalfile

  • A . disclosure only
  • B . non-disclosure only
  • C . non-disclosure only
  • D . disclosure and non-disclosure only
  • E . non-disclosure and non-disclosure Only

Reveal Solution Hide Solution

Correct Answer: A
Question #2

What does S l represent in the following lines from a Bourne shell script:

#! /bin/sh

cp SI 52

  • A . A control operator.
  • B . An environmental variable.
  • C . A function.
  • D . A positional parameter.
  • E . The shebang.

Reveal Solution Hide Solution

Correct Answer: D
Question #3

Which of the following excerpts is a valid if condition in the Bourne shell?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: B
Question #4

A file called mybackup is found while investigating a USB pen drive.

Which utility can be used to determine the kind of data that is contained in that file?

  • A . file mybackup
  • B . Is -1 mybackup
  • C . tar -t mybackup
  • D . whatis mybackup
  • E . touch mybackup

Reveal Solution Hide Solution

Correct Answer: A
Question #5

Which BSD command lists, adds, or deletes swap devices?

  • A . diskcontro1
  • B . mkswap
  • C . swap
  • D . swapct1
  • E . swapinfo

Reveal Solution Hide Solution

Correct Answer: D
Question #6

Which of the following tar options handle compression’? (Choose TWO correct answers)

  • A . -x
  • B . -c
  • C . -z
  • D . -J
  • E . -v

Reveal Solution Hide Solution

Correct Answer: C, D
Question #7

What symbol is used in the vi editor to start the forward search for a string? (Specify ONLY the single character symbol without any parameters)

Reveal Solution Hide Solution

Correct Answer:


Question #8

How often does? match the preceding expression in a regular expression?

  • A . Two or more times
  • B . Exactly one time
  • C . Any number of times
  • D . Zero or one times
  • E . One or more times

Reveal Solution Hide Solution

Correct Answer: D
Question #9

What command creates a new directory? (Specify ONLY the command without any path or parameters.)

Reveal Solution Hide Solution

Correct Answer:


Question #10

What is the purpose of the nice command’?

  • A . Run a command with the permissions of another user
  • B . Run a command with limited access to a specified directory
  • C . Run a command with additional filesystem permissions
  • D . Run a command with additional secondary groups.
  • E . Run a command with a non-standard priority.

Reveal Solution Hide Solution

Correct Answer: A, E   

Question #11

Which command sends the contents of the file myconfigfile by email to me@mycompany. com?

  • A . cat myconfigfile I mail me@mycompany.com
  • B . cat myconfigfile > me@mycompany.com
  • C . mail me@mycompany.com I cat myconfigfile
  • D . mail me@mycompany.com > cat myconfigfile
  • E . mail myconfigfile -r me@mycompany.com

Reveal Solution Hide Solution

Correct Answer: A
Question #12

While in the csh or tcsh shell, which command changes the time zone environment variable to GMT?

  • A . export TZ=GMT
  • B . setenv TZ GMT
  • C . env TZ=GMT
  • D . TZ=GMT; export TZ
  • E . environ TZ GMT

Reveal Solution Hide Solution

Correct Answer: B
Question #13

While using vi as superuser. the attempt to save a file while quitting the editor leads to an error indicating that the file is read-only.

How can the file permissions be overridden to save the edits to the file and quit the editor?

  • A . : fw!
  • B . : fwq
  • C . : ql
  • D . : wq
  • E . : wq!

Reveal Solution Hide Solution

Correct Answer: E
Question #14

Which command shows all processes owned by the user bob?

  • A . who -1 bob
  • B . pgrep -u bob
  • C . ps -o -a bob
  • D . top bob
  • E . last -p bob

Reveal Solution Hide Solution

Correct Answer: B
Question #15

On BSD systems that provide an interactive adduser script, which configuration file stores the default adduser settings?

  • A . adduser.conf
  • B . login, conf
  • C . pw.conf
  • D . user.conf
  • E . usermgmt. conf

Reveal Solution Hide Solution

Correct Answer:  E
Question #16

Which command locks the user account bob on a FreeBSD system?

  • A . audit_user -1 bob
  • B . lockuser bob
  • C . pw lock bob
  • D . usermod lock bob
  • E . vipw lock bob

Reveal Solution Hide Solution

Correct Answer: C
Question #17

Which file on a BSD system defines the printers which are available by the Ipr printing system’? (Specify the full name of the file including path)

Reveal Solution Hide Solution

Correct Answer:


Question #18

Which line in a cron job runs myscript once per hour?

  • A . ***** /pathto/myscript
  • B . 0 * * * * /pathto/myscript
  • C . * 0 * * * /pathto/myscript
  • D . * * o * * /pathto/myscript
  • E . * * * o * /pathto/myscript

Reveal Solution Hide Solution

Correct Answer: B
Question #19

Which of the following lines stems from the output of last?

  • A . 3:26PM up 1:58, 2 users, load averages: 0.49, 0.43, 0.40
  • B . May 11 19:34:24 fbsd login [793]: login on ttyv0 as root
  • C . root ttyv0 Sat May 18 13:35 still logged in
  • D . 763 v1 Is+ 0:00-00 /usr/libexec/getty Pc ttyv1
  • E . FreeBSD 12.0-RELEASE r341666 GENERIC

Reveal Solution Hide Solution

Correct Answer: C
Question #20

When replacing the system MTA with another mail server program, which configuration file needs to be updated with the path to the new MTA?

  • A . mail.conf
  • B . mailer, conf
  • C . mta.conf
  • D . postfix.conf
  • E . sendmail. conf

Reveal Solution Hide Solution

Correct Answer: E
Exit mobile version