CramPDF Co., ltd provides valid exam cram PDF & dumps PDF materials to help candidates pass exam certainly. If you want to get certifications in the short time please choose CramPDF exam cram or dumps PDF file.

Exam Questions Answers Braindumps 702-100 Exam Dumps PDF Questions [Q24-Q40]

Share

Exam Questions Answers Braindumps 702-100 Exam Dumps PDF Questions

Download Free Lpi 702-100 Real Exam Questions


Lpi 702-100 exam covers a range of topics related to BSD installation and software management, including package management, system maintenance, networking, and security. Candidates must have a good understanding of the BSD kernel, file systems, and utilities, as well as proficiency in shell scripting and system administration tasks.


Lpi 702-100 Certification Exam is an essential qualification for IT professionals looking to augment their Linux and BSD administration skills. 702-100 exam validates the candidates' knowledge and skills in software installation and management by examining their practical experience, understanding of system configuration, and ability to troubleshoot common issues. Linux Professional Institute BSD Installation and Software Management 702 certification awarded after passing the Lpi 702-100 exam serves as proof of the candidate's efficiency in managing Linux and BSD systems, making them highly desirable in the IT industry.

 

NEW QUESTION # 24
Which of the following commands have to be used in order to update FreeBSD? (Choose TWO correct answers.)

  • A. freebsd-update repoupdate
  • B. freebsd-update fetch
  • C. freebsd-update install
  • D. freebsd-update all
  • E. freebsd-update resolvedeps

Answer: B,C

Explanation:
Explanation
To update FreeBSD, the freebsd-update fetch command is used to download available binary updates, and the freebsd-update install command is used to apply the downloaded updates to the system. These commands are part of the freebsd-update utility, which supports binary security and errata updates to the FreeBSD base system without the need for manual compilation and installation2.
References:
FreeBSD Handbook - freebsd-update


NEW QUESTION # 25
When using the default TFTP server on a BSD system, which configuration file needs to be edited before the TFTP service will start?

  • A. inetd.conf
  • B. init.conf
  • C. tftpd.conf
  • D. rc.conf
  • E. service, conf

Answer: A

Explanation:
Explanation
The inetd.conf file is the configuration file that needs to be edited before the TFTP service will start on a BSD system. The inetd daemon handles the TFTP service and other network services, and its configuration file contains settings that determine howthese services are managed. To enable the TFTP service, the corresponding entry in inetd.conf must be uncommented and properly configured. References:
FreeBSD Handbook - inetd
Linux Professional Institute BSD Specialist Exam Objectives


NEW QUESTION # 26
What does S l represent in the following lines from a Bourne shell script:
#! /bin/sh
cp SI 52

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

Answer: D

Explanation:
Explanation
The command cp SI 52 in the Bourne shell script copies the file named by the value of SI to the file named 52.
The SI is a positional parameter that represents the first argument passed to the script when it is executed.
Positional parameters are numbered from 1 to 9, and can be accessed by using the dollar sign $ followed by the number. For example, $1 is the first positional parameter, $2 is the second, and so on. Therefore, the SI in the script is equivalent to $1, and it represents the first argument passed to the script. The correct answer is D.
A positional parameter. References:
[Positional Parameters - FreeBSD]
[Shell Scripting Tutorial - Positional Parameters]


NEW QUESTION # 27
Which command finds all directories within the current user's home directory?

  • A. find -d home
  • B. find -uid myname
  • C. find - -type d
  • D. find / -d | home
  • E. find. -dir

Answer: C

Explanation:
Explanation
The find command is used to search for files and directories that match certain criteria. The - -type option specifies the type of file to look for, and the d argument means directories. The . argument means the current directory. Therefore, the command find - -type d searches for all directories within the current directory. The other options are either invalid or do not match the question. References: 1:
https://www.comptia.org/training/books/a-core-1-220-1101-study-guide, page 301 2:
https://www.howtogeek.com/771399/how-to-use-the-find-command-in-linux/, section "The Linux find Command"


NEW QUESTION # 28
What FreeBSD and NetBSD command manages services started at boot time? (Specify ONLY the command without any path or parameters.)

Answer:

Explanation:
sysrc
Explanation
The sysrc command is used in FreeBSD and NetBSD to manage system-wide daemon and service settings, including those that are started at boot time. It allows administrators to safely edit system rc files, such as /etc/rc.conf, where services to be started at boot time are specified1.
References:
FreeBSD Handbook - rc.conf
FreeBSD Man Pages - sysrc


NEW QUESTION # 29
Given the following listing
-rw-r-r- 1root whee115254 Nov 13 08:55 bobsfile
How can the superuser grant the user bob write permission to this file?

  • A. chperm 664 bobsfile
  • B. chown bob:bob bobsfile
  • C. vipw -u bob bobsfile
  • D. chmod +x bobsfile
  • E. chgrp bob bobsfile

Answer: B

Explanation:
Explanation
The command chown changes the ownership of a file or directory. The syntax is chown user:group file, where user is the new owner and group is the new group of the file. In this case, the superuser can grant the user bob write permission to the file by changing both the owner and the group of the file to bob. This way, bob will have the same permissions as the original owner, which is read and write. Alternatively, the superuser can also use the command chmod to change the permissions of the file without changing the ownership. For example, chmod g+w bobsfile will add write permission to the group, and chmod o+w bobsfile will add write permission to others. However, these commands will also affect other users who belong to the same group or are not the owner or the group of the file. References:
FreeBSD Handbook: File and Directory Ownership
FreeBSD Handbook: File and Directory Permissions
Linux Professional Institute BSD Specialist: 702.1 Filesystem and Devices


NEW QUESTION # 30
What file contains values for MIBs which are set during system startup? (Specify the full name of the file, including path.)

Answer:

Explanation:
/etc/rc.conf
Explanation
The file /etc/rc.conf contains values for Management Information Bases (MIBs) which are set during system startup. This file is used to configure system-wide settings, including the enabling and disabling of services, network settings, and other startup configurations2.
References:
FreeBSD Handbook - The FreeBSD Booting Process


NEW QUESTION # 31
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. mailer.conf
  • B. mail.conf
  • C. mta.conf
  • D. postfix.conf
  • E. sendmail. conf

Answer: A

Explanation:
Explanation
The mailer.conf file is used to configure the mailer programs on a BSD system. It allows the system administrator to replace the default mailer programs, such as sendmail, with alternative ones, such as postfix or exim. The mailer.conf file contains a series of entries, each consisting of a label, an equal sign, and a command. The label is the name of the default mailer program, and the command is the path to the alternative mailer program that will be executed instead. For example, to replace sendmail with postfix, the mailer.conf file should contain the following entries:
sendmail /usr/local/sbin/sendmail send-mail /usr/local/sbin/sendmail mailq /usr/local/sbin/sendmail newaliases
/usr/local/sbin/sendmail hoststat /usr/local/sbin/sendmail purgestat /usr/local/sbin/sendmail The mailer.conf file is read by the mailwrapper program, which is a binary that acts as a wrapper for the mailer programs. The mailwrapper program is installed as /usr/sbin/sendmail and /usr/libexec/sendmail/sendmail, and it invokes the appropriate mailer program based on the mailer.conf file. Therefore, to replace the system MTA with another mail server program, the mailer.conf file needs to be updated with the path to the new MTA.
References:
Chapter 31. Electronic Mail | FreeBSD Documentation Portal
DragonFlyBSD: mta


NEW QUESTION # 32
Which of the following excerpts is a valid if condition in the Bourne shell?

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

Answer: A

Explanation:
Explanation
The excerpt C is a valid if condition in the Bourne shell because it uses the correct syntax and operators for the test command. The syntax of the if statement in the Bourne shell is:
if test-commands; then consequent-commands; [elif more-test-commands; then more-consequents;] [else alternate-consequents;] fi The test-commands are any commands that return a status of 0 (true) or non-zero (false). The test command is a common way to perform various tests on files, strings, and numbers. The test command has the following format:
test expression
The expression consists of one or more primaries, which are unary or binary operators that evaluate to true or false. The primaries can be combined with the following operators:
! expression: Logical NOT expression -a expression: Logical AND expression -o expression: Logical OR ( expression ): Parentheses for grouping The excerpt C uses the test command with the following expression:
"$var" = "test"
This expression tests if the value of the variable $var is equal to the string "test". The = operator is a string comparison operator that returns true if the strings are equal. The double quotes around the variable and the string are used to prevent word splitting and globbing by the shell. The spaces around the operator are also required by the test command.
The excerpt C also uses the correct syntax for the then and fi keywords, which mark the beginning and the end of the if statement. The then keyword must be on the same line as the test command, or on a new line after a semicolon. The fi keyword must be on a new line.
The other excerpts are invalid for various reasons:
The excerpt A uses the && operator instead of the -a operator for logical AND. The && operator is a shell operator that executes the second command only if the first command succeeds. The test command does not recognize the && operator as a valid argument. The excerpt A also uses the != operator instead of the -ne operator for numeric comparison. The != operator is a string comparison operator that returns true if the strings are not equal. The -ne operator is a numeric comparison operator that returns true if the numbers are not equal.
The excerpt B uses the [ [ construct instead of the test command. The [ [ construct is a shell keyword that performs conditional expressions similar to the test command, but with some extensions and differences. The [ [ construct is not part of the POSIX standard and is not supported by all shells. The Bourne shell does not support the [ [ construct, and will treat it as a command name. The excerpt B also uses the wrong syntax for the then keyword, which must be on a new line or after a semicolon.
The excerpt D uses the wrong syntax for the test command, which requires a space after the opening bracket and before the closing bracket. The excerpt D also uses the wrong syntax for the fi keyword, which must be on a new line.


NEW QUESTION # 33
What option of uname displays the version of the running operating system'? (Specify ONLY the option name without any values or parameters.)

Answer:

Explanation:
-v
Explanation
In FreeBSD, theunamecommand is used to display system information. The option-vspecifically displays the version of the running operating system. This information is critical for system administrators and users who need to know the exact version of the OS they are working with, particularly when troubleshooting, updating, or configuring the system for specific software requirements.
https://man.freebsd.org/cgi/man.cgi?query=uname&sektion=1&format=html
The -v or --version option of the uname command displays the version level of the operating system. This is a string that identifies the release date and patch level of the system. For example, on FreeBSD, the output would be something like:
FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24 07:12:34 UTC 2021
This indicates that the system is running FreeBSD 13.0, with the fourth patch applied, and that the kernel was built on August 24, 2021. The version level can be useful to determine the compatibility and security of the system, as well as to report bugs or issues.


NEW QUESTION # 34
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)

Answer:

Explanation:
/
Explanation

The symbol / is used in the vi editor to start the forward search for a string. It is followed by the string to be searched and then Enter to execute the search. The vi editor highlights the first occurrence of the string after the cursor position. To find the next occurrence of the string in the same direction, press n. To find the previous occurrence of the string in the opposite direction, press N. References:
How to Search to Find a Word in Vim or Vi Text Editor
How can I switch from forward to backward search in Vim?
How To Search in VI Editor
How to Search in Vim / Vi


NEW QUESTION # 35
Which of the following tar options handle compression'? (Choose TWO correct answers)

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

Answer: B,C

Explanation:
Explanation
The tar command is used to create or extract compressed archive files on BSD systems. It can handle various compression formats, such as gzip, bzip2, xz, and lzma. The tar command takes different options to specify the compression type, such as -z for gzip, -j for bzip2, -J for xz, and -Z for lzma. The other options are not related to compression, but to other functions of the tar command, such as -x for extracting, -c for creating, and -v for verbose output. References:
[tar(1) - OpenBSD manual pages]
[FreeBSD Handbook - Chapter 3. Unix Basics]
[FreeBSD Handbook - Chapter 18. Storage]


NEW QUESTION # 36
Which device stands for the first BSD disk slice in the disk label on the first partition on the second SATA disk on OpenBSD?

  • A. /dev/slld2
  • B. /dev/d2sl
  • C. /dev/sdla
  • D. /dev/sdlp2d
  • E. /dev/sata2a

Answer: D

Explanation:
Explanation
According to the BSD disklabel documentation1, the device name for a BSD disk slice consists of three parts:
the disk name, the partition letter, and the slice number. The disk name is determined by the driver and the order of detection, and it usually follows the pattern of sdX, where X is a letter from a to z. The partition letter is a lowercase letter from a to p, excluding c, which is reserved for the whole disk. The slice number is a decimal number from 0 to 15, indicating the MBR partition that contains the BSD disklabel. Therefore, the device name for the first BSD disk slice in the disk label on the first partition on the second SATA disk on OpenBSD is /dev/sdlp2d, where sdl is the disk name, p is the partition letter, and 2 is the slice number.
References1: BSD disklabel - Wikipedia


NEW QUESTION # 37
Which command shows all processes owned by the user bob?

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

Answer: B

Explanation:
Explanation
The pgrep command is used to find processes by various criteria, such as user name, group name, process ID, command name, etc. The -u option specifies the user name or user ID to match. Therefore, the command pgrep
-u bob will show all processes owned by the user bob. The output will be a list of process IDs, one per line. To show more information about the processes, such as command name, arguments, state, etc., the -l, -a, and -f options can be used. For example, the command pgrep -l -u bob will show the process ID and the command name for each process owned by bob. References:
pgrep - FreeBSD, the manual page for the pgrep command on FreeBSD.
How to use pgrep and pkill commands in Linux - Linuxize, a tutorial on how to use the pgrep and pkill commands in Linux.


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

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

Answer: A

Explanation:
Explanation
The adduser.conf file is used to store the default settings for the interactive adduser script on BSD systems.
The adduser script is a shell script that uses the pw command to add new users to the system. It creates passwd/group entries, a home directory, copies dotfiles and sends the new user a welcome message. The adduser.conf file allows the administrator to pre-set certain configuration options, such as the default shell, home partition, login group, encryption method, etc. The other options are either invalid files or belong to other purposes. For example, login.conf is used to define login classes, pw.conf is used to configure the pw command, user.conf is used to set user-specific kernel variables, and usermgmt.conf is used to configure user management utilities. References:
adduser - FreeBSD adduser(8) Manual Page1
adduser.conf - FreeBSD adduser.conf(5) Manual Page2
[pw] - FreeBSD pw(8) Manual Page


NEW QUESTION # 39
Which configuration file defines the order of the name resolution methods used on a NetBSD system'?

  • A. /etc/hosts
  • B. /etc/nsswitch.conf
  • C. /etc/named
  • D. /etc/rc.conf
  • E. /etc/resolv.conf

Answer: B

Explanation:
Explanation
The /etc/nsswitch.conf file defines the order of the name resolution methods used on a NetBSD system. It specifies the sources and their priority for various databases, such as hosts, services, protocols, etc. The sources can be files, DNS, NIS, or other services. For example, the following line in /etc/nsswitch.conf indicates that the hosts database should be looked up first in the /etc/hosts file, then in the DNS server, and finally in the NIS server:
hosts: files dns nis
References:
nsswitch.conf(5) - NetBSD Manual Pages
Chapter 23. The NetBSD Network Configuration Files


NEW QUESTION # 40
......

Latest Lpi 702-100 Real Exam Dumps PDF: https://actualtests.crampdf.com/702-100-exam-prep-dumps.html