[2024] 702-100 Exam Dumps, Test Engine Practice Test Questions [Q13-Q34]

Share

[2024] 702-100 Exam Dumps, Test Engine Practice Test Questions

Pass 702-100 exam [May 10, 2024] Updated 62 Questions


Lpi 702-100 certification exam is designed for individuals who want to demonstrate their expertise in installing and managing software on the BSD operating system. 702-100 exam is a part of the Linux Professional Institute (LPI) certification program, which is globally recognized as a benchmark for IT professionals who work with open-source technologies. Passing 702-100 exam indicates that a candidate has a strong understanding of the BSD operating system and is capable of installing, configuring, and managing software on it.


One of the significant benefits of LPI 702-100 certification is that it validates the candidate’s skills and knowledge in a diverse set of Linux operating systems, including Red Hat Linux, Ubuntu Linux, and Fedora Linux. Linux Professional Institute BSD Installation and Software Management 702 certification demonstrates the candidate's proficiency in the BSD distribution of Linux, which is widely used in servers and workstations, and provides a solid foundation for those seeking to advance their careers in Linux operating systems.


Lpi 702-100 certification exam covers a wide range of topics related to BSD installation and software management. 702-100 exam tests the candidate's knowledge of the BSD operating system, including system installation, package management, and system administration. 702-100 exam also covers topics related to software management, including software installation, configuration, and troubleshooting. Candidates are required to have a thorough understanding of the BSD operating system and must be able to demonstrate their knowledge through practical applications.

 

NEW 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. : wq!
  • B. : ql
  • C. : fwq
  • D. : fw!
  • E. : wq

Answer: A

Explanation:
Explanation
The wq! command is used to save a file and quit the vi editor, even if the file is read-only. The w command means write, the q command means quit, and the ! command means force. By combining these commands, the vi editor will override the file permissions and save the changes to the file, then exit the editor. The other options are either invalid syntax or do not force the write operation. For example, wq will save and quit only if the file is writable, ql will quit without saving, and fw! will force write but not quit. References:
[vi] - FreeBSD vi(1) Manual Page
[wq!] - How to save a file in vi / vim editor in Linux / Unix


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

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

Answer: C

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 # 15
Which command shows the current user's group memberships?

  • A. who
  • B. groups
  • C. group
  • D. ident
  • E. showuser

Answer: B

Explanation:
Explanation
The groups command is used to show the current user's group memberships on BSD systems. The command prints the names of the primary and secondary groups that the user belongs to, separated by spaces. The primary group is the one that is assigned to new files and directories created by the user. The secondary groups are the ones that grant additional permissions or access to the user. For example, the output of groups for a user named alice might look like this:
alice wheel staff
This means that alice's primary group is alice, and her secondary groups are wheel and staff. The wheel group is typically used for granting administrative privileges, such as using the su or sudo commands. The staff group might be used for granting access to certain resources or directories that are shared by a group of users.
The other options are either invalid commands or do not show the user's group memberships. For example, group is not a valid command, ident is used to query an ident protocol server, showuser is not a valid command, and who is used to show who is logged on the system.
References:
groups - FreeBSD groups(1) Manual Page1
Group Management - FreeBSD Handbook2


NEW QUESTION # 16
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. non-disclosure only
  • B. disclosure only
  • C. disclosure and non-disclosure only
  • D. non-disclosure only
  • E. non-disclosure and non-disclosure Only

Answer: E

Explanation:
Explanation
The command grep "non [-] disclosure" legalfile matches the lines in the file that contain the pattern non [-] disclosure, where the brackets indicate a character class that matches either a space or a dash. Therefore, the lines that contain non-disclosure or non - disclosure are matched by the command, while the line that contains disclosure only is not matched. The file has two lines that contain non-disclosure, so the correct answer is E. non-disclosure and non-disclosure Only. References:
grep - IBM
Character Classes and Bracket Expressions - GNU


NEW QUESTION # 17
Which of the following lines stems from the output of last?

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

Answer: D

Explanation:
Explanation
The last command displays a list of the last logged in users on a BSD system. The output consists of several columns that show the user name, the terminal name, the login date and time, and the logout date and time or the current status. The option C is the only line that matches the format of the last command output. It shows that the user root logged in on the terminal ttyv0 on Saturday, May 18, 2023 at 13:35 and is still logged in. The other options are either invalid lines or belong to othercommands or sources. For example, option A is the output of the uptime command, option B is a line from the /var/log/auth.log file, option D is a line from the ps command, and option E is the output of the uname -a command. References:
[last] - FreeBSD last(1) Manual Page
[How to use the last command in Linux] - Linuxize


NEW QUESTION # 18
Which of the following commands is used to set the FreeBSD security level?

  • A. slct1
  • B. security
  • C. secleve1
  • D. sysct1
  • E. setleve1

Answer: D

Explanation:
Explanation
The sysctl command is used to set and get kernel state variables, including the FreeBSD security level. The security level is a variable named kern.securelevel, which can have values from -1 to 3, with higher values indicating more restrictions. The security level can only be increased, not decreased, unless the system is rebooted or in single-user mode. The security level affects various operations, such as loading kernel modules, changing immutable flags on files, and modifying device nodes12 References: 1:
https://docs.freebsd.org/en/books/handbook/security/#security-basics-securelevels 2:
https://www.freebsd.org/cgi/man.cgi?query=sysctl&sektion=8


NEW QUESTION # 19
How many /28 IPv4 subnets can be created within a /24 IPv4 prefix?

  • A. 0
  • B. 1
  • C. 2
  • D. 3
  • E. 4

Answer: D

Explanation:
Explanation
A /24 IPv4 prefix provides 256 IP addresses, which is the number of addresses in one octet (2^8). A /28 subnet has 16 IP addresses (2^4). To calculate how many /28 subnets can fit into a /24 prefix, divide the total number of addresses in the /24 prefix by the number of addresses in a /28 subnet: 256 / 16 = 16. However, since each subnet has network and broadcast addresses that cannot be used for hosts, the actual number of usable subnets is less. In practice, you can create 16 subnets, each with 14 usable IP addresses for hosts.
References:
Subnet Cheat Sheet
IP Subnet Calculator


NEW QUESTION # 20
Which directories contain start scripts for services on FreeBSD? (Choose TWO correct answers.)

  • A. /var/boot/rc.d/
  • B. /usr/rc.d/
  • C. /etc/red/
  • D. /boot/red/
  • E. /usr/local/etc/rc.d/

Answer: B,E

Explanation:
Explanation
The directories that contain start scripts for services on FreeBSD are /usr/rc.d/ and /usr/local/etc/rc.d/. The
/usr/rc.d/ directory contains the system-provided scripts for the base system services, such as cron, sshd, syslogd, etc. The /usr/local/etc/rc.d/ directory contains the scripts for the additional services installed from ports or packages, such as apache, mysql, nginx, etc. These scripts follow the BSD rc.d framework, which allows for fine-grained control and customization of the startup process. The scripts are invoked by the main
/etc/rc script, which sources the /etc/rc.conf file for configuration options
https://docs.freebsd.org/en/articles/rc-scripting/


NEW QUESTION # 21
Which command locks the user account bob on a FreeBSD system?

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

Answer: A

Explanation:
Explanation
The pw utility is a command-line utility for the FreeBSD system user and group files, allowing the superuser an easy way of adding, modifying and removing users and groups. To lock a user account on a FreeBSD system, the pw lock command can be used with the username as an argument. This will prevent the user from logging in orchanging their password. To unlock a user account, the pw unlock command can be used with the username as an argument. This will restore the user's access to the system. References:
FreeBSD locking an account - nixCraft
FreeBSD: How To Add, Delete Or Modify Users
How to: FreeBSD User Administration - Atlantic.Net


NEW QUESTION # 22
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 # 23
Which BSD command lists, adds, or deletes swap devices?

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

Answer: A

Explanation:
Explanation
The swapctl command is used to list, add, or delete swap devices on BSD systems. It can also display the total amount of swap space available and used. The swapctl command takes various options to perform different actions, such as -l to list the swap devices, -a to add a swap device, -d to delete a swap device, and -s to show the swapsummary. The other options are not valid BSD commands for managing swap devices. References:
swapctl(8) - OpenBSD manual pages
FreeBSD Handbook - Chapter 19. The FreeBSD Booting Process
FreeBSD Handbook - Chapter 9. Configuring the FreeBSD Kernel


NEW QUESTION # 24
Which file defines the IP address of the default gateway on a FreeBSD system?

  • A. /etc/gateway
  • B. /etc/network
  • C. /etc/resolvers
  • D. /etc/rc.conf
  • E. /etc/red

Answer: D

Explanation:
Explanation
The file that defines the IP address of the default gateway on a FreeBSD system is /etc/rc.conf. This file contains various system configuration options, including network settings. To set the default gateway, the defaultrouter variable is used, followed by the IP address of the gateway. For example, defaultrouter="192.168.1.254". This setting will be persistent across reboots.
References
FreeBSD Set a Default Route / Gateway - nixCraft
Chapter 34. Advanced Networking | FreeBSD Documentation Portal
Static default gateway on FreeBSD 8.0 - Super User


NEW QUESTION # 25
What is the name of the NetBSD installation program?

  • A. sysinst
  • B. anaconda
  • C. sysinsta11
  • D. nbinsta11
  • E. bsd.rd

Answer: A

Explanation:
Explanation
The name of the NetBSD installation program is sysinst. It is the standard installer used by NetBSD for setting up the system on a new machine. The sysinst program guides users through the installation process, including disk partitioning, package selection, and system configuration45.
References:
NetBSD Guide - Example installation
NetBSD Guide - Installing NetBSD: Preliminary considerations and preparations


NEW QUESTION # 26
Assuming a umask of 022, what are the default permissions in octal mode of the newly created files?

  • A. 0
  • B. 022
  • C. 1
  • D. 2
  • E. 3

Answer: C

Explanation:
Explanation
The umask command in BSD is used to set default permissions for files or directories the user creates1. The umask value is permissions to deny, taken off whatever permissions would be given by default2. The default permission values for files are 666 (rw-rw-rw-), meaning read and write for user, group, and others3. The umask value of 022 means that the permissions to deny are 022 (-w-w-), meaning write for group and others. To calculate the default permissions for newly created files, we need to subtractthe umask value from the default permission value, using bitwise AND operation4. For example:
666 - 022 = 644 rw-rw-rw- - -w-w- = rw-r-r-
Therefore, the default permissions for newly created files with a umask of 022 are 644 (rw-r-r-), meaning read and write for user, and read for group and others.
References: 1: Umask command in Linux with examples - GeeksforGeeks 2: Different permission between directory and file with 'umask' - Unix & Linux Stack Exchange 3: Default File Permissions (umask) - docs.oracle.com 4: What is Umask and How to Use It {Update Default Linux File Permissions} - phoenixNAP KB


NEW QUESTION # 27
Which of the following commands installs binary packages on OpenBSD?

  • A. pkg install
  • B. portinst
  • C. pkg_add
  • D. port add
  • E. pkgbin

Answer: C


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

Answer:

Explanation:
mkdir
Explanation
The command mkdir (short for make directory) creates a new directory with the specified name. The command takes one or more arguments, which are the names of the directories to be created. If the name contains spaces or other special characters, it should be enclosed in quotes. For example, mkdir "My Documents" creates a directory named My Documents. The command also accepts some options, such as -p, which creates the parent directories if they do not exist, or -m, which sets the permissions of the new directory.
For example, mkdir -p -m 755 /usr/local/bin creates the directory /usr/local/bin and its parent directories /usr and /usr/local, and sets the permissions of /usr/local/bin to 755 (read, write and execute for the owner, read and execute for the group and others). References:
[mkdir(1) - FreeBSD Manual Pages]
[How to Create a Directory in Linux - Linuxize]


NEW QUESTION # 29
What is the purpose of the file /boot/loader. conf on OpenBSD?

  • A. Specify the kernel image to load.
  • B. Specify options for starting operating systems other than BSD.
  • C. Specify where to install the bootloader.
  • D. Specify which system services to start.
  • E. Specify kernel configuration options.

Answer: A

Explanation:
Explanation
The file /boot/loader.conf on OpenBSD is used to specify the kernel image that the bootloader should load.
This file contains various settings that can be used to control the boot process, including kernel parameters and device driver options.
References:
boot(8) - OpenBSD manual pages


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

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

Answer: E

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 # 31
Which command sends the contents of the file myconfigfile by email to me@mycompany. com?

Answer: A

Explanation:
Explanation
The cat command is used to concatenate and display files. The mail command is used to send and receive mail messages. The pipe symbol (I) is used to redirect the output of one command to the input of another command.
Therefore, the command cat myconfigfile I mail [email protected] sends the contents of the file myconfigfile by email to [email protected]. The cat command reads the file and displays its contents to the standard output, which is then piped to the mail command, which reads the standard input and sends it as a mail message to the specified address. The mail command also prompts the user to enter a subject line and optionally some additional headers for the message. Alternatively, the subject line can be specified by the -s option of the mail command. For example, the command cat myconfigfile I mail -s "My config file" [email protected] sends the same message with the subject "My config file". References:
[cat - FreeBSD], the manual page for the cat command on FreeBSD.
[mail - FreeBSD], the manual page for the mail command on FreeBSD.
[How to send email from the Linux command line - LinuxConfig.org], a tutorial on how to use the mail command and other email clients on Linux.


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

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

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 # 33
Which syslog configuration line sends all messages from the auth facility to the remote syslog server logger.
example. org'?

  • A. auth.* syslog://logger.example.org/
  • B. auth.* logger.example.org:auth
  • C. auth.*:logger.example.org
  • D. auth.* @logger.example.org
  • E. auth.* |logger.example.org

Answer: D

Explanation:
Explanation
The correct configuration line for sending all messages from the auth facility to a remote syslog server is auth.* @logger.example.org. In syslog configuration, the auth.* specifies the facility and priority, where auth is the facility for security/authorization messages, and * represents all priorities. The @ symbol is used to indicate that the messages are to be sent to a remote server, followed by the hostname of the remote syslog server. References:
FreeBSD Handbook - Logging
Linux Professional Institute BSD Specialist Exam Objectives


NEW QUESTION # 34
......

Lpi 702-100 Real 2024 Braindumps Mock Exam Dumps: https://www.validdumps.top/702-100-exam-torrent.html

Lpi 702-100 Actual Questions and 100% Cover Real Exam Questions: https://drive.google.com/open?id=1uOb56XRLzz33KI8DX2kVnOJG7alGK7H4