[Q30-Q53] テスト資料010-160テストエンジン試験問題はここにある[2024年05月]

Share

テスト資料010-160テストエンジン試験問題はここにある[2024年05月]

合格突破受験者シミュレーションされた010-160試験PDF問題を試そう

質問 # 30
What happens to a file residing outside the home directory when the file owner's account is deleted? (Choose two.)

  • A. The UID of the former owner is shown when listing the file's details.
  • B. Ownership and permissions of the file remain unchanged.
  • C. The user root is set as the new owner of the file.
  • D. The file is removed from the file system.
  • E. During a file system check, the file is moved to /lost +found.

正解:A、B

解説:
Explanation
When a user account is deleted, the files owned by that user are not automatically deleted from the file system, unless they are in the user's home directory. The files residing outside the home directory will remain unchanged, but they will have an invalid owner. The owner of a file is identified by a numeric user ID (UID), which is mapped to a user name by the /etc/passwd file. When a user is deleted, the corresponding entry in the
/etc/passwd file is removed, but the UID of the file is not changed. Therefore, when listing the file's details, the UID of the former owner is shown instead of the user name. For example, if the user alice with UID 1001 is deleted, and she owns a file named report.txt in the /tmp directory, the output of ls -l /tmp/report.txt will look something like this:
-rw-r-r-- 1 1001 users 1024 Nov 20 14:11 /tmp/report.txt
The user root is not set as the new owner of the file, nor is the file moved to /lost+found or removed from the file system. The /lost+found directory is used to store files that are recovered from a corrupted file system after running the fsck command, not from deleted user accounts. The file system check does not affect the ownership or permissions of the files, unless there is a serious inconsistency that needs to be fixed. References
:
* Linux Essentials - Linux Professional Institute (LPI), section 5.2.1
* 5.2 Lesson 1 - Linux Professional Institute Certification Programs, slide 6.


質問 # 31
Which of the following examples shows the general structure of a for loop in a shell script?

  • A. for ls *.txt exec {} \;
  • B. for file in *.txt do
    echo $i done
  • C. for *.txt as file => echo $file
  • D. for *.txt ( echo $i )
  • E. foreach @{file} { echo $i
    }

正解:B

解説:
Explanation
The general structure of a for loop in a shell script is as follows12:
for variable in list do commands done
The variable is the name of a loop counter or iterator that takes on the values of the items in the list. The list can be a sequence of words, numbers, filenames, or the output of a command. The commands are the body of the loop that are executed for each value of the variable. The do and done keywords mark the beginning and the end of the loop body.
The option C. for file in *.txt do echo $i done follows this structure, with the variable being file, the list being
*.txt (which matches all the files with the .txt extension in the current directory), and the command being echo
$i (which prints the value of the variable i, which is presumably set somewhere else in the script).
The other options are incorrect because:
* A. for *.txt as file => echo $file uses an invalid syntax for a for loop. The as keyword is not part of the shell script syntax, and the => symbol is not a valid operator. The correct way to write this loop would be:
for file in *.txt do echo $file done
* B. for *.txt ( echo $i ) uses an invalid syntax for a for loop. The parentheses are not part of the shell script syntax, and the loop body is missing the do and done keywords. The correct way to write this loop would be:
for i in *.txt do echo $i done
* D. for ls *.txt exec {} ; uses an invalid syntax for a for loop. The ls command is not a valid variable name, and the exec {} ; is not a valid command. This looks like a mix of a for loop and a find command.
The correct way to write this loop would be:
for file in *.txt do exec $file done
* E. foreach @{file} { echo $i } uses an invalid syntax for a for loop. The foreach keyword is not part of the shell script syntax, and the @{file} and { echo $i } are not valid expressions. This looks like a mix of a for loop and a Perl syntax. The correct way to write this loop would be:
for file in * do echo $file done
References:
* Looping Statements | Shell Script - GeeksforGeeks
* How do I write a 'for' loop in Bash? - Stack Overflow


質問 # 32
Which of the following outputs comes from the command free?

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

正解:B


質問 # 33
Which of the following DNS record types hold an IP address? (Choose two.)

  • A. AAAA
  • B. MX
  • C. CNAME
  • D. A
  • E. NS

正解:A、D

解説:
Explanation
The DNS record types that hold an IP address are the A and AAAA records. These records are used to map a domain name to an IP address of the host, which is necessary for establishing a connection between a client and a server. The A record holds a 32-bit IPv4 address, while the AAAA record holds a 128-bit IPv6 address.
For example, the A record for www.example.com could be:
www.example.com. IN A 192.0.2.1
This means that the domain name www.example.com resolves to the IPv4 address 192.0.2.1. Similarly, the AAAA record for www.example.com could be:
www.example.com. IN AAAA 2001:db8::1
This means that the domain name www.example.com resolves to the IPv6 address 2001:db8::1.
The other options are incorrect because:
* NS records are used to specify the authoritative name servers for a domain. They do not hold an IP address, but a domain name of the name server. For example, the NS record for example.com could be:
example.com. IN NS ns1.example.com.
This means that the name server ns1.example.com is authoritative for the domain example.com.
* MX records are used to specify the mail exchange servers for a domain. They do not hold an IP address, but a domain name of the mail server and a preference value. For example, the MX record for example.com could be:
example.com. IN MX 10 mail.example.com.
This means that the mail server mail.example.com has a preference value of 10 for receiving email for the domain example.com.
* CNAME records are used to create an alias for a domain name. They do not hold an IP address, but another domain name that the alias points to. For example, the CNAME record for www.example.com could be:
www.example.com. IN CNAME example.com.
This means that the domain name www.example.com is an alias for the domain name example.com.
References:
* DNS Record Types: Defined and Explained - Site24x7
* List of DNS record types - Wikipedia


質問 # 34
What is true about the su command?

  • A. It changes the name of the main administrator account.
  • B. It is the default shell of the root account.
  • C. It locks the root account in specific time frames.
  • D. It can only be used by the user root.
  • E. It runs a shell or command as another user.

正解:E


質問 # 35
Which of the following outputs comes from the commandfree?

  • A. Option B
  • B. Option D
  • C. Option A
  • D. Option E
  • E. Option C

正解:D


質問 # 36
What is the UID of the user root?

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

正解:C

解説:
Explanation/Reference:


質問 # 37
What information is stored in /etc/passwd? (Choose three.)

  • A. The encrypted password
  • B. The numerical user ID
  • C. The user's storage space limit
  • D. The username
  • E. The user\s default shell

正解:A、B、D


質問 # 38
Which statements about the directory /etc/skel are correct? (Choose two.)

  • A. The files from the directory are copied to the home directory of a new user when the account is created.
  • B. The files from the directory are copied to the home directory of the new user when starting the system.
  • C. The personal user settings of root are stored in this directory.
  • D. The directory contains a default set of configuration files used by the useradd command.
  • E. The directory contains the global settings for the Linux system.

正解:A、D


質問 # 39
Which of the following is a protocol used for automatic IP address configuration?

  • A. DNS
  • B. LDAP
  • C. DHCP
  • D. SMTP
  • E. NFS

正解:C


質問 # 40
Which of the following types of bus can connect hard disk drives with the motherboard?

  • A. The CPU bus
  • B. The NUMA bus
  • C. The RAM bus
  • D. The SATA bus
  • E. The Auto bus

正解:D

解説:
Explanation
A bus is a communication system that transfers data between components inside a computer or between computers. There are different types of buses that serve different purposes. The RAM bus connects the CPU with the main memory, the NUMA bus connects multiple processors in a multiprocessor system, the CPU bus connects the CPU with other components on the motherboard, and the Auto bus is a fictional bus that can transform into a robot. The SATA bus is the correct answer because it is a type of bus that can connect hard disk drives with the motherboard. SATA stands for Serial Advanced Technology Attachment and it is a standard interface for connecting storage devices such as hard disk drives, solid state drives, and optical drives.
SATA offers faster data transfer rates, lower power consumption, and improved cable management compared to older interfaces such as IDE and SCSI. References: : [Bus (computing)] : [Transformers: Robots in Disguise (2015 TV series)] : [Serial ATA]3) : [SATA vs. IDE: What's the Difference?]


質問 # 41
When typing a long command line at the shell, what can be used to split a command across multiple lines?

正解:

解説:
\


質問 # 42
A user is currently in thedirectory/home/user/Downloads/and runs the command ls ../Documents/ Assuming it exists, which directory's content is displayed?

  • A. /home/user/Downloads/Documents/
  • B. /home/user/Documents/
  • C. /home/Documents
  • D. /home/user/Documents/Downloads/
  • E. /Documents/

正解:E


質問 # 43
What is true about links in a Linux file system?

  • A. A symbolic link can only point to a file and not to a directory.
  • B. A hard link can only point to a directory and never to a file.
  • C. When the target of the symbolic link is moved, the link is automatically updated.
  • D. Only the root user can create hard links.
  • E. A symbolic link can point to a file on another file system.

正解:E

解説:
Explanation/Reference:


質問 # 44
Where is the operating system of a Raspberry Pi stored?

  • A. On a removable SD cardwhich is put into the Raspberry Pi.
  • B. On a Linux extension module connected to the Raspberry Pi's GPIO pins.
  • C. On the master device attached to the Raspberry Pi's IDE bus.
  • D. On a read only partition on the Raspberry Pi's firmware, next to the BIOS.
  • E. On rewritable flash storage which is built into the Raspberry Pi.

正解:A


質問 # 45
Which of the following outputs comes from the commandfree?

  • A. Option B
  • B. Option D
  • C. Option A
  • D. Option E
  • E. Option C

正解:D


質問 # 46
What is true about the owner of a file?

  • A. Each file is owned by exactly one user and one group.
  • B. The owner of a file always has full permissions when accessing the file.
  • C. When a user is deleted, all files owned by the user disappear.
  • D. The owner of a file cannot be changed once it is assigned to an owner.
  • E. The user owning a file must be a member of the file's group.

正解:A


質問 # 47
Which of the following keys can be pressed to exit less?

  • A. l
  • B. x
  • C. !
  • D. e
  • E. q

正解:E


質問 # 48
Members of a team already haveexperience using Red Hat Enterprise Linux. For a small hobby project, the team wants to set up a Linux server without paying for a subscription. Which of the following Linux distributions allows the team members to apply as much of their Red Hat EnterpriseLinux knowledge as possible?

  • A. Debian GNU/Linux
  • B. Raspbian
  • C. Ubuntu Linux LTS
  • D. openSUSE
  • E. CentOS

正解:E


質問 # 49
Most commands on Linux can display information on their usage. How can this information typically be displayed?

  • A. By running the command with the option -m or --manpage.
  • B. By running the command with the option ?! or ?=!.
  • C. By running the command with the option /doc or /documentation.
  • D. By running the command with the option -h or --help.
  • E. By running the command with the option /? or /??.

正解:A


質問 # 50
Which ofthe following commands creates an archive filework.tarfrom the contents of the directory./ work/?

  • A. tar work.tar < ./work/
  • B. tar work > work.tar
  • C. tar -cf work.tar ./work/
  • D. tar -create work.tgz -content ./work/
  • E. tar --new work.tar ./work/

正解:C


質問 # 51
What can be found in the /proc/ directory?

  • A. One directory per running process.
  • B. One log file per running service.
  • C. One device file per hardware device.
  • D. One file per existing user account.
  • E. One directory per installed program.

正解:A

解説:
Explanation
The /proc/ directory is a virtual file system that contains information about the system and the processes running on it. It is not a conventional file system that stores files on a disk, but rather a dynamic view of the kernel's data structures. One of the features of the /proc/ directory is that it contains one subdirectory for each process running on the system, which is named after the process ID (PID). For example, the subdirectory
/proc/1/ contains information about the process with PID 1, which is usually the init process. The process subdirectories contain various files that provide information about the process, such as its status, memory usage, open files, environment variables, command line arguments, and more. The /proc/ directory also contains a symbolic link called 'self', whichpoints to the process that is accessing the /proc/ file system.
Therefore, the correct answer is D. One directory per running process.
The other options are incorrect because:
* A. One directory per installed program. This is not true, as the /proc/ directory does not contain information about installed programs, but only about running processes. Installed programs are usually stored in other directories, such as /bin/, /usr/bin/, /opt/, etc.
* B. One device file per hardware device. This is not true, as the /proc/ directory does not contain device files, but only virtual files that represent kernel data. Device files are usually stored in the /dev/
* directory, which is another special file system that provides access to hardware devices.
* C. One file per existing user account. This is not true, as the /proc/ directory does not contain information about user accounts, but only about processes. User accounts are usually stored in the /etc/ directory, which contains configuration files, such as /etc/passwd/ and /etc/shadow/, that define the users and their passwords.
* E. One log file per running service. This is not true, as the /proc/ directory does not contain log files, but only information files. Log files are usually stored in the /var/log/ directory, which contains various files that record the activities of the system and the services.
References:
* The /proc Filesystem - The Linux Kernel documentation
* A Beginner's Guide to the /proc File System in Linux - Tecmint
* Appendix E. The proc File System Red Hat Enterprise Linux 6 | Red Hat ...
* Chapter 5. The proc File System Red Hat Enterprise Linux 4 | Red Hat ...
* proc file system in Linux - GeeksforGeeks


質問 # 52
Which of the following programs are web servers? (Choose two.)

  • A. NGINX
  • B. Postfix
  • C. Apache HTTPD
  • D. Dovecot
  • E. Curl

正解:A、C

解説:
Explanation
A web server is a program that listens for requests from web browsers and serves web pages, images, or other resources. Apache HTTPD and NGINX are two popular web servers that can run on Linux systems. They can handle multiple protocols, such as HTTP, HTTPS, FTP, and SMTP. Postfix, Curl, and Dovecot are not web servers, but they are related to web or network services. Postfix is a mail transfer agent (MTA) that can send and receive emails. Curl is a command-line tool that can transfer data from or to a web server. Dovecot is a mail delivery agent (MDA) that can store and retrieve emails from a local mailbox. References:
* Linux Essentials - Linux Professional Institute (LPI), section 1.2 Major Open Source Applications
* LPI Linux Essentials 010-160 - Test prep Training Tutorials, section 4.4 Your Computer on the Network


質問 # 53
......

正真正銘で最適な010-160オンライン練習試験資料:https://www.goshiken.com/Lpi/010-160-mondaishu.html

優良な質を持つ010-160問題集と解釈が待ってます。 今すぐゲット:https://drive.google.com/open?id=1O5ePInsMk_NXYwK38Ve2vioDYXPnRi1B