検証済み!702-100問題集と解答で702-100テストエンジン正確解答付き [Q34-Q51]

Share

検証済み!702-100問題集と解答で702-100テストエンジン正確解答付き

あなたを必ず合格させる702-100問題集PDF2024年最新のに更新された62問あります

質問 # 34
Which configuration file defines when log files are rotated'?

  • A. /etc/logs.conf
  • B. /etc/rc.logd
  • C. /etc/rc.d/syslogd
  • D. /etc/syslog.conf
  • E. /etc/newsyslog.conf

正解:E

解説:
Explanation
The /etc/newsyslog.conf file is the configuration file for the newsyslog command, which is used to rotate log files on BSD systems. The newsyslog command is typically run by cron at regular intervals to check if any log files need to be rotated based on the criteria specified in the /etc/newsyslog.conf file. The file contains a series of entries, one per line, that define the log file name, the owner and group, the mode, the count, the size, the when, the flags, and the pidfile for each log file. For example, the following entry in the /etc/newsyslog.conf file:
/var/log/messages root:wheel 644 7 * @T00 Z /var/run/syslog.pid
means that the /var/log/messages file is owned by root and belongs to the wheel group, has the mode 644, is rotated 7 times, has no size limit, is rotated at midnight every day, is compressed after rotation, and the process ID of syslogd is read from /var/run/syslog.pid and sent a signal to reopen the log file.
The other options are either invalid files or belong to other purposes. For example, /etc/logs.conf is not a valid file, /etc/rc.logd is a startup script for the log daemon, /etc/rc.d/syslogd is a startup script for the syslog daemon, and /etc/syslog.conf is the configuration file for the syslog daemon.
References:
[newsyslog.conf] - FreeBSD newsyslog.conf(5) Manual Page
[newsyslog] - FreeBSD newsyslog(8) Manual Page
[Log File Rotation] - FreeBSD Handbook


質問 # 35
Which of the following commands installs binary packages on OpenBSD?

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

正解:A


質問 # 36
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. chmod +x bobsfile
  • B. vipw -u bob bobsfile
  • C. chperm 664 bobsfile
  • D. chgrp bob bobsfile
  • E. chown bob:bob bobsfile

正解:E

解説:
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


質問 # 37
Which command finds all directories within the current user's home directory?

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

正解:C

解説:
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"


質問 # 38
When creating a symbolic link, an error message indicating that the target already exists is displayed. Which statement is true?

  • A. In can override the target, but only if it is a file.
  • B. In can not override an existing symbolic link.
  • C. In can not override an existing target so the target must be manually removed
  • D. In can override the target, but only if it is a directory
  • E. In can override the target, whether it is a file or a directory.

正解:C

解説:
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


質問 # 39
Which of the following commands installs binary packages on OpenBSD?

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

正解:A

解説:
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


質問 # 40
While in the csh or tcsh shell, which command changes the timezone environment variable to GMT?

  • A. setenv TZ GMT
  • B. environ TZ GMT
  • C. export TZ=GMT
  • D. env TZ=GMT
  • E. TZ=GMT; export TZ

正解:A

解説:
Explanation
The setenv command is used to set an environment variable in the csh or tcsh shell. The syntax is setenv VAR VALUE, where VAR is the name of the variable and VALUE is the value to assign to it. The TZ variable is used to specify the timezone for the shell and its subprocesses. To set the timezone to GMT (Greenwich Mean Time), the command is setenv TZ GMT. This will affect the output of commands like date and ls that display time information. The other options are either invalid syntax or belong to other shells, such as bash or sh.
References:
setenv - Linux setenv command help and examples1
TZ - FreeBSD Environment Variables2


質問 # 41
What is the name of the NetBSD installation program?

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

正解:E

解説:
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


質問 # 42
Which command sends the contents of the file myconfigfile by email to me@mycompany. com?

正解:E

解説:
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.


質問 # 43
Which FreeBSD command updates packages to newer versions'?

  • A. pkg audit
  • B. pkg refresh
  • C. pkg upgrade
  • D. pkg update
  • E. pkg pull

正解:C

解説:
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


質問 # 44
Which BSD command lists, adds, or deletes swap devices?

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

正解:D

解説:
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


質問 # 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

正解:E

解説:
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


質問 # 46
Which of the following lines stems from the output of last?

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

正解:D

解説:
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


質問 # 47
Which of the following commands initializes ZFS on a number of block devices?

  • A. zfsload -i
  • B. zfs init
  • C. newzfs
  • D. zpoo1 create
  • E. mkfs -t zfs

正解:D

解説:
Explanation
The zpool create command is used to initialize ZFS on one or more block devices and create a storage pool. A storage pool is a collection of devices that provide physical storage and data replication for ZFS datasets. The zpool create command takes the name of the pool and the devices to be added as arguments. For example, zpool create mypool c0t0d0 c0t1d0 c0t2d0 would create a pool named mypool with three devices. The other options are either invalid or do not initialize ZFS. References: 1:
https://www.comptia.org/training/books/a-core-1-220-1101-study-guide, page 302 2:
https://docs.oracle.com/cd/E19253-01/819-5461/gbchx/index.html, section "Creating a ZFS Storage Pool"


質問 # 48
Which command shows the current user's group memberships?

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

正解:D

解説:
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


質問 # 49
Which file on a BSD system defines the printers which are available by the Ipr printing system'? (Specify the full name of the file including path)

正解:

解説:
/etc/printcap
Explanation

The /etc/printcap file on a BSD system defines the printers that are available by the Ipr printing system. The Ipr printing system is a BSD-compatible printing system that uses the lpd daemon to manage print jobs and spooling. The /etc/printcap file contains a series of entries, one for each printer, that specify the printer name, device, options, and filters. The format and syntax of the /etc/printcap file are described in the printcap(5) manual page. References:
About Printing on FreeBSD | The FreeBSD Forums
The BSD Printing Protocol (System Administration Guide, Volume 2) - Oracle Chapter 11. Printing | FreeBSD Documentation Portal


質問 # 50
Which of the following excerpts is a valid if condition in the Bourne shell?

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

正解:B

解説:
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.


質問 # 51
......

合格できるLpi 702-100試験情報フリー練習テスト:https://www.jpntest.com/shiken/702-100-mondaishu

Lpi 702-100リアル試験問題と解答は無料で試せる:https://drive.google.com/open?id=1QR4761Z68FyZ16PTsgfssdK5slwK8B-w

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡