100% Reliable Microsoft 702-100 Exam Dumps Test Pdf Exam Material
Based on Official Syllabus Topics of Actual Lpi 702-100 Exam
NEW QUESTION # 34
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 and non-disclosure Only
- B. non-disclosure only
- C. disclosure and non-disclosure only
- D. disclosure only
- E. non-disclosure only
Answer: A
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 # 35
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. tar -t mybackup
- C. whatis mybackup
- D. Is -1 mybackup
- E. touch mybackup
Answer: A
Explanation:
Explanation
The file command is used to determine the type of data contained in a computer file. It performs a series of tests on the file and prints a description of the file type based on the first successful test. The file command can take one or more file names as its arguments. For example, file mybackup will display the file type of mybackup. The other options are not valid commands for finding the file type. References:
file command in Linux with examples
file (command) - Wikipedia
Linux File Command
NEW QUESTION # 36
How often does? match the preceding expression in a regular expression?
- A. Any number of times
- B. Exactly one time
- C. One or more times
- D. Two or more times
- E. Zero or one times
Answer: E
Explanation:
Explanation
The question mark (?) is a special character in regular expressions that modifies the preceding expression to match zero or one times. For example, the regular expression colou?r matches both color and colour, but not colouur or colr. The question mark is also used to make an expression non-greedy, meaning that it will match the shortest possible string instead of the longest. For example, the regular expression <.?> matches the first pair of angle brackets in a string, while <.> matches the entire string enclosed by the outermost pair of angle brackets. References:
Regular expression - Wikipedia, section "Basic concepts"
How to write Regular Expressions? - GeeksforGeeks, section "Special Characters"
NEW QUESTION # 37
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/sdlp2d
- B. /dev/sata2a
- C. /dev/sdla
- D. /dev/d2sl
- E. /dev/slld2
Answer: A
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 # 38
Which command locks the user account bob on a FreeBSD system?
- A. pw lock bob
- B. audit_user -1 bob
- C. vipw lock bob
- D. lockuser bob
- E. usermod lock 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 # 39
Which of the following lines stems from an ARP table?
- A. 127.0.0.1 localhost localhost.my.domain
- B. localhost link#2 UH lo0
- C. tcp4 0 0 192.168.122.11.22 192.168.122.1.38058 ESTABLISHED
- D. ? (192.168.122.1) at 52:54:00: a3:4e: 0e on em0
- E. inet 192.168.122.11 netmask 0xffffff00 broadcast 192.168.122.255
Answer: D
Explanation:
Explanation
This line stems from an ARP table because it shows the association between an IP address (192.168.122.1) and a MAC address (52:54:00: a3:4e: 0e) on a network interface (em0). ARP stands for Address Resolution Protocol, which is used to map IP addresses to MAC addresses on a local network. An ARP table is a list of these mappings that is maintained by each host on the network. The other lines are not from an ARP table, but from different sources, such as:
B: inet 192.168.122.11 netmask 0xffffff00 broadcast 192.168.122.255: This line is from the output of the ifconfig command, which displays the configuration of network interfaces. It shows the IP address, netmask, and broadcast address of the interface.
C: 127.0.0.1 localhost localhost.my.domain: This line is from the /etc/hosts file, which is used to map hostnames to IP addresses. It shows that the loopback address (127.0.0.1) is associated with the hostname localhost and the fully qualified domain name localhost.my.domain.
D: tcp4 0 0 192.168.122.11.22 192.168.122.1.38058 ESTABLISHED: This line is from the output of the netstat command, which displays the status of network connections. It shows that there is an established TCP connection between the local host (192.168.122.11) on port 22 and the remote host (192.168.122.1) on port 38058.
E: localhost link#2 UH lo0: This line is from the output of the route command, which displays the routing table. It shows that the destination localhost is reachable via the link layer interface lo0, which is the loopback interface. The UH flags indicate that the route is up and uses a host-specific gateway. References: 1: https://docs.freebsd.org/en/books/handbook/network-arp/ 2:
https://www.freebsd.org/cgi/man.cgi?query=ifconfig&sektion=8 3:
https://www.freebsd.org/cgi/man.cgi?query=hosts&sektion=5 4:
https://www.freebsd.org/cgi/man.cgi?query=netstat&sektion=1 5:
https://www.freebsd.org/cgi/man.cgi?query=route&sektion=8
NEW QUESTION # 40
On BSD systems that provide an interactive adduser script, which configuration file stores the default adduser settings?
- A. usermgmt. conf
- B. pw.conf
- C. login, conf
- D. adduser.conf
- E. user.conf
Answer: D
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 # 41
What is the name of the NetBSD installation program?
- A. sysinsta11
- B. anaconda
- C. nbinsta11
- D. bsd.rd
- E. sysinst
Answer: E
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 # 42
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. sendmail. conf
- B. mailer.conf
- C. mta.conf
- D. postfix.conf
- E. mail.conf
Answer: B
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 # 43
What file contains the configuration for the network interface em0on an OpenBSD system'? (Specify the full name of the file, including path.)
Answer:
Explanation:
/etc/hostname.em0
Explanation
The file /etc/hostname.em0 contains the configuration for the network interface em0 on an OpenBSD system.
This file specifies the IP address, netmask, gateway, and other options for the interface. The file is read by the netstart script during boot or when the interface is restarted. The file name is derived from the interface name, which is usually based on the driver name and the device number. For example, em0 is the first interface using the em driver, which supports Intel PRO/1000 network adapters.
References:
Networking | OpenBSD Handbook
[hostname.if(5) - OpenBSD manual pages]
NEW QUESTION # 44
Which BSD command lists, adds, or deletes swap devices?
- A. swap
- B. diskcontro1
- C. mkswap
- D. swapct1
- E. swapinfo
Answer: D
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 # 45
What subnet mask is used on network 192 168 32 0 in the following output?
Fxp0: flags=8843 <UP, BROADCAST, RUNNING, SIMPLEX, MULTICAST> mtu 1500 options=8 inet 192.168.50.162 netmask OxffffeOOO broadcast 192.168.63.255 ether 00:09:6B: 13:42:9f media: Ethernet autoselect (lOObaseTX <full-duplex>) status: active
- A. /28
- B. 0
- C. /25
- D. 1
- E. 255 255.224.0
Answer: E
Explanation:
Explanation
The subnet mask 255.255.224.0 corresponds to the hexadecimal netmask 0xffffe000 shown in the output. This subnet mask indicates a subnet with 19 bits for the network portion and 13 bits for the host portion, allowing for a large number of hosts within the subnet.
References:
BSD Specialist Exam 702 Objectives - Linux Professional Institute
FreeBSD Handbook - Networking
NEW QUESTION # 46
Which command shows the current user's group memberships?
- A. ident
- B. who
- C. showuser
- D. groups
- E. group
Answer: D
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 # 47
What directory holds the ports collection on FreeBSD? (Choose TWO correct answers.)
- A. /var/db/packages/
- B. /ports/
- C. /usr/ports/
- D. /usr/local/pkg/
- E. /tmp/ports/
Answer: C,D
Explanation:
Explanation
The ports collection on FreeBSD is a package management system that allows users to install third-party software from source or binary packages. The ports collection is stored in the /usr/ports/ directory, which contains subdirectories for different categories of software, such as archivers, databases, editors, etc. Each subdirectory contains one or more ports, which are directories that contain the files needed to build and install the software. The /usr/ports/ directory can be updated with the portsnap command34 Binary packages are pre-compiled versions of the ports that can be installed with the pkg command. Binary packages are downloaded from the FreeBSD package repository,which is hosted at pkg.freebsd.org. The packages are installed in the /usr/local/ directory by default, and the information about the installed packages is stored in the /usr/local/pkg/ directory. The /usr/local/pkg/ directory contains files with the .db extension, which are SQLite databases that store the metadata of the packages. The pkg command can query and manipulate these databases56 References: 3: https://docs.freebsd.org/en/books/handbook/ports/ 4:
https://www.freebsd.org/ports/ 5: https://docs.freebsd.org/en/books/handbook/pkgng-intro/ 6:
https://www.freebsd.org/cgi/man.cgi?query=pkg&sektion=8
NEW QUESTION # 48
Which FreeBSD command updates packages to newer versions'?
- A. pkg audit
- B. pkg refresh
- C. pkg upgrade
- D. pkg update
- E. pkg pull
Answer: C
Explanation:
Explanation
The command pkg upgrade is used to update FreeBSD packages to newer versions. It compares the versions of installed packages with those in the repositories and performs upgrades as necessary. The pkg update command is used to update the repository catalog, but it does not perform the actual package upgrades1.
References:
FreeBSD Handbook - Packages and Ports
NEW QUESTION # 49
Which file defines the IP address of the default gateway on a FreeBSD system?
- A. /etc/network
- B. /etc/red
- C. /etc/gateway
- D. /etc/resolvers
- E. /etc/rc.conf
Answer: E
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 # 50
Which command sends the contents of the file myconfigfile by email to me@mycompany. com?
- A. mail [email protected] I cat myconfigfile
- B. mail myconfigfile -r [email protected]
- C. mail [email protected] > cat myconfigfile
- D. cat myconfigfile > [email protected]
- E. cat myconfigfile I mail [email protected]
Answer: E
NEW QUESTION # 51
Which of the following programs can be used to enumerate all responsive hosts on a subnet?
- A. netstat
- B. route
- C. nmap
- D. rtso1
- E. traceroute
Answer: C
Explanation:
Explanation
Nmap is a program that can be used to enumerate all responsive hosts on a subnet. Nmap stands for Network Mapper, and it is a tool that can perform network discovery, port scanning, service detection, vulnerability assessment, and more. Nmap can send different types of packets to probe the hosts on a subnet and determine which ones are alive and what services they are running. Nmap can also perform OS fingerprinting, which can identify the operating system of the target hosts. Nmap has many options and features that can customize the scan according to the user's needs and preferences. The other programs are not suitable for enumerating all responsive hosts on a subnet, because:
A: traceroute: This program is used to trace the route of packets from the source host to the destination host. It can show the intermediate hops and the latency of each hop. However, it cannot show all the hosts on a subnet, only the ones that are on the path to the destination.
B: netstat: This program is used to display the status of network connections, routing tables, interface statistics, and more. It can show the local and remote addresses and ports of the active connections, but it cannot show all the hosts on a subnet, only the ones that are connected to the local host.
D: rtso1: This is not a valid program name, but it may be a typo for rtso, which is a program that can perform TCP SYN scanning. However, this program is not as versatile and powerful as nmap, and it can only scan TCP ports, not UDP or other protocols.
E: route: This program is used to manipulate the routing table, which is used to determine the next hop for a packet based on its destination address. It can show the destination, gateway, interface, and flags of each route, but it cannot show all the hosts on a subnet, only the ones that are reachable via a specific gateway. References: 6: https://nmap.org/book/man.html 7:
https://www.freebsd.org/cgi/man.cgi?query=traceroute&sektion=8 :
https://www.freebsd.org/cgi/man.cgi?query=netstat&sektion=1 :
https://www.freebsd.org/cgi/man.cgi?query=rtso&sektion=1 :
https://www.freebsd.org/cgi/man.cgi?query=route&sektion=8
NEW QUESTION # 52
Which configuration file defines the order of the name resolution methods used on a NetBSD system'?
- A. /etc/named
- B. /etc/rc.conf
- C. /etc/nsswitch.conf
- D. /etc/resolv.conf
- E. /etc/hosts
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 # 53
......
Earning the Lpi 702-100 certification can provide numerous benefits, including increased job opportunities, higher salaries, and recognition among peers and employers as a skilled and knowledgeable professional in BSD installation and software management.
Free 702-100 Dumps are Available for Instant Access: https://www.passtestking.com/Lpi/702-100-practice-exam-dumps.html
View All 702-100 Actual Exam Questions Answers and Explanations for Free: https://drive.google.com/open?id=1OA974wrY7hcoeOM-NPBIGZqusUmsToak