Which command locks the user account bob on a FreeBSD system?
Correct Answer: C
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
702-100 Exam Question 12
Which directories contain start scripts for services on FreeBSD? (Choose TWO correct answers.)
Correct Answer: B,D
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/
702-100 Exam Question 13
Which of the following lines stems from an ARP table?
Correct Answer: A
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
702-100 Exam Question 14
When creating a symbolic link, an error message indicating that the target already exists is displayed. Which statement is true?
Correct Answer: A
Explanation A symbolic link, or symlink, is a special type of file that points to another file or directory on the file system1. When creating a symbolic link with the ln command, the syntax is as follows: ln -s target link where target is the file or directory to link to, and link is the name of the symbolic link2. If the link name already exists, the ln command will fail and display an error message indicating that the target already exists3. This is because the ln command does not overwrite existing files or directories by default4. Therefore, the only way to create a symbolic link with the same name as an existing file or directory is to manually remove the existing target first, and then run the ln command again. Alternatively, the ln command can be used with the -f (force) option, which will remove the existing target and create the symbolic link in one step4. However, this option is not mentioned in the question, so the correct answer is A. References: 1: How to Create Symbolic Links in Linux [Complete Guide] - Linux Handbook 2: Ln Command in Linux (Create Symbolic Links) | Linuxize 3: How to Create and Use Symbolic Links (aka Symlinks) on Linux - How-To Geek 4: Symbolic Links in Unix/Linux - Stack Abuse
702-100 Exam Question 15
Which of the following commands installs binary packages on OpenBSD?
Correct Answer: E
Explanation The command pkg_add is used to install binary packages on OpenBSD systems. It is a utility for installing and upgrading software packages from binary files. When using pkg_add, the system will fetch and install the specified package, along with any dependencies it may have123. References: OpenBSD manual pages - packages(7) nixCraft - OpenBSD install or add binary software package using pkg_add