Certification Training for 702-100 Exam Dumps Test Engine [2023]
Dec 29, 2023 Step by Step Guide to Prepare for 702-100 Exam
Lpi 702-100 exam is designed for individuals seeking to become certified professionals in Linux and BSD operating systems. Linux Professional Institute BSD Installation and Software Management 702 certification is specifically focused on installation and software management of BSD systems, including FreeBSD and OpenBSD. Professionals who pass 702-100 exam have demonstrated their expertise in managing and installing software on these systems, as well as their ability to troubleshoot any issues that may arise.
Achieving the LPI 702-100 certification is a great way to demonstrate your expertise in BSD installation and software management. Linux Professional Institute BSD Installation and Software Management 702 certification is recognized globally and has become a standard qualification for IT professionals working with BSD operating systems. With this certification, you can enhance your career prospects and open up new opportunities in the field of IT. Whether you are new to BSD operating systems or an experienced professional, the LPI 702-100 certification is an excellent way to showcase your skills and knowledge in this field.
NEW QUESTION # 20
Which of the following lines stems from the output of last?
- A. May 11 19:34:24 fbsdlogin [793]: login on ttyv0as root
- B. FreeBSD 12.0-RELEASE r341666 GENERIC
- C. 763v1 Is+ 0:00-00/usr/libexec/getty Pc ttyv1
- D. 3:26PM up 1:58, 2 users, load averages: 0.49, 0.43, 0.40
- E. root ttyv0Sat May 18 13:35 still logged in
Answer: E
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 # 21
Which BSD command lists, adds, or deletes swap devices?
- A. diskcontro1
- B. swapinfo
- C. swapct1
- D. swap
- E. mkswap
Answer: C
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 # 22
Which directories contain start scripts for services on FreeBSD? (Choose TWO correct answers.)
- A. /usr/local/etc/rc.d/
- B. /boot/red/
- C. /var/boot/rc.d/
- D. /usr/rc.d/
- E. /etc/red/
Answer: A,D
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 # 23
Which command can be used to display the local filesystems that are currently mounted'?
- A. mount -a
- B. df -h C du -s
- C. rpcinfo
- D. cat /etc/fstab
Answer: B
Explanation:
Explanation
The command df -h displays the disk space usage of all mounted filesystems in a human-readable format. It shows the size, used, available, and percentage of each filesystem, as well as the mount point. This command can be used to check the local filesystems that are currently mounted.
https://unix.stackexchange.com/questions/24182/how-to-get-the-complete-and-exact-list-of-mounted-filesystems
https://www.tecmint.com/find-mounted-file-systems-in-linux/
https://itslinuxfoss.com/check-filesystem-mounted-linux/
NEW QUESTION # 24
Which command sends the contents of the file myconfigfile by email to me@mycompany. com?
- A. cat myconfigfile I mail [email protected]
- B. mail [email protected] > cat myconfigfile
- C. mail [email protected] I cat myconfigfile
- D. mail myconfigfile -r [email protected]
- E. cat myconfigfile > [email protected]
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 # 25
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/sata2a
- B. /dev/d2sl
- C. /dev/sdla
- D. /dev/slld2
- E. /dev/sdlp2d
Answer: E
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 # 26
Which option of the crontab command opens the current user's crontab in an editor?
- A. -rw
- B. -e
- C. -vi
- D. -i
- E. -w
Answer: B
Explanation:
Explanation
The -e option of the crontab command opens the current user's crontab in an editor. The editor used is determined by the environment variables VISUAL or EDITOR. If neither of these variables is set, the default editor is vi. The user can edit the crontab file to add, modify, or delete cron jobs, which are scheduled commands or scripts that run at a specified time or interval. The crontab file has the following format:
minute hour day-of-month month day-of-week command
Each field can be a number, a range, a list, or an asterisk (*), which means all possible values. The command can be any valid shell command or script. For example, the following crontab entry runs the backup.sh script every day at 2:30 AM:
30 2 * * * /home/user/backup.sh
To save and install the crontab file, the user needs to exit the editor. The crontab command will check the syntax of the file and report any errors. If the file is valid, it will be installed and the cron daemon will execute the cron jobs according to the schedule. References:
crontab(1) - Linux manual page
FreeBSD Handbook: 11.6. Scheduling Tasks
NEW QUESTION # 27
Assuming a umask of 022, what are the default permissions in octal mode of the newly created files?
- A. 0
- B. 1
- C. 2
- D. 3
- E. 022
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 # 28
Which of the following commands can be used to connect to a remote TCP service?
- A. listen
- B. portstat
- C. connect
- D. netcat
- E. service
Answer: D
Explanation:
Explanation
The command netcat is a versatile networking utility that can be used to read from and write to network connections using TCP or UDP protocols. It is often used for debugging and investigating the network and can be used to connect to a remote TCP service.
References:
BSD Specialist Exam 702 Objectives - Linux Professional Institute
FreeBSD Handbook - Networking
NEW QUESTION # 29
Which of the following chmod commands changes the permission of the file text. txt to 750?
- A. chmod user:rw, group:r, other:x
- B. chmod -u rw -g rx -o - text.txt
- C. chmod text.txt 750
- D. chmod u=rwx,g=rx,o= text.txt
- E. chmod text.txt=u:rw,g:r,o:r
Answer: C
Explanation:
Explanation
Permissions involve read, write, and execute roles that can be assigned to the owner, a group, or other users1.To use the chmod command, you must specify the permission you want to set and the file or directory you want to modify1.For example,chmod +rwx filenameto add permissions,chmod -rwx directorynameto remove permissions, orchmod +x filenameto allow executable permissions2.
There are two ways to specify the permissions with the chmod command: symbolic notation and numeric notation1.Symbolic notation uses letters and symbols to represent the user classes and the permissions1.Numeric notation uses octal numbers (0-7) to represent the permissions for each user class1.Each octal digit corresponds to a combination of read , write (w), and execute (x) permissions, as shown in the table below3:
Octal digit
Binary representation
Permissions
0
000
-
1
001
-x
2
010
-w-
3
011
-wx
4
100
r-
5
101
r-x
6
110
rw-
7
111
rwx
To use numeric notation, you need to provide three octal digits, one for each user class (owner, group, and others)1.For example,chmod 644 filenamemeans that the owner has read and write permissions (6), the group has read permissions (4), and others have read permissions (4)1.
In this question, the desired permission for the file text.txt is 750, which means that the owner has read, write, and execute permissions (7), the group has read and execute permissions (5), and others have no permissions (0)1. Therefore, the correct chmod command to change the permission of the file text.txt to 750 ischmod text.txt 750.
References:1: Chmod Command in Linux (File Permissions) | Linuxize2: How to change directory permissions in Linux | Pluralsight3: How to Use the chmod Command on Linux - How-To Geek
NEW QUESTION # 30
Which of the following programs can be used to enumerate all responsive hosts on a subnet?
- A. route
- B. traceroute
- C. netstat
- D. rtso1
- E. nmap
Answer: E
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 # 31
Which of the following tar options handle compression'? (Choose TWO correct answers)
- A. -z
- B. -x
- C. -J
- D. -v
- E. -c
Answer: A,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 # 32
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 # 33
Which command sends the contents of the file myconfigfile by email to me@mycompany. com?
- A. cat myconfigfile I mail [email protected]
- B. mail [email protected] > cat myconfigfile
- C. mail [email protected] I cat myconfigfile
- D. mail myconfigfile -r [email protected]
- E. cat myconfigfile > [email protected]
Answer: A
NEW QUESTION # 34
Which command and option can be used to perform a reverse DNS lookup?
- A. dnssec -check
- B. nsupdate -r
- C. rdns -1
- D. dig -x
- E. host -reverse
Answer: D
Explanation:
Explanation
This command and option can be used to perform a reverse DNS lookup, which is the process of finding the domain name or hostname associated with an IP address. The dig command is a tool that can query DNS servers for various types of records, such as A, MX, NS, PTR, etc. The -x option tells dig to perform a reverse DNS lookup by sending a PTR query to the DNS server. For example, to perform a reverse DNS lookup for the IP address 8.8.8.8, the following command can be used:
dig -x 8.8.8.8
The output of this command will show the PTR record for 8.8.8.8, which is dns.google. This means that the hostname for 8.8.8.8 is dns.google. Reverse DNS lookups are useful for verifying the identity of a host, checking for mail server configuration, or troubleshooting network problems
NEW QUESTION # 35
Which command locks the user account bob on a FreeBSD system?
- A. audit_user -1 bob
- B. pw lock bob
- C. lockuser bob
- D. usermod lock bob
- E. vipw lock bob
Answer: B
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 # 36
......
Ultimate Guide to Prepare 702-100 Certification Exam for BSD Specialist: https://easypass.examsreviews.com/702-100-pass4sure-exam-review.html