[2024年07月31日] 信頼され続ける010-160日本語試験のコツがあるPDF試験材料
2024年最新の010-160日本語テスト解説(更新されたのは80問があります)
質問 # 48
どのコマンドがファイル名のみを表示し、追加情報を表示しませんか?
- A. ls -nl
- B. ls -l
- C. ls -alh
- D. ls -lh
- E. ls -a
正解:E
質問 # 49
ユーザーrootのUIDは何ですか?
- A. 0
- B. 1
- C. 2
- D. 3
- E. 4
正解:D
質問 # 50
次のデバイスのうち、ハードディスクパーティションを表すものはどれですか?
- A. /dev/sda/p2
- B. /dev/part0
- C. /dev/ttyS0
- D. /dev/sata0
- E. /dev/sda2
正解:E
質問 # 51
Linuxベースのオペレーティングシステムに新しいアプリケーションをインストールするための推奨ソースは何ですか?
- A. 小売店
- B. ディストリビューションのパッケージリポジトリ
- C. ベンダーのWebサイト
- D. ベンダーのバージョン管理システム
- E. CD-ROMディスク
正解:B
解説:
Explanation
The distribution's package repository is the preferred source for the installation of new applications in a Linux based operating system. A package repository is a collection of software packages that are maintained by the distribution and can be easily installed, updated, or removed using a package manager. Package repositories offer several advantages, such as:
* They ensure compatibility and stability with the system and other packages.
* They provide security updates and bug fixes for the packages.
* They reduce the risk of malware or corrupted files.
* They simplify the dependency management and configuration of the packages.
The other sources are not preferred because they may not offer these benefits and may cause problems with the system. The vendor's version management system, the vendor's website, or a CD-ROM disk may contain packages that are not compatible with the distribution or may conflict with other packages. A retail store may not have the latest or the most suitable packages for the system. References:
* Linux Essentials - Linux Professional Institute (LPI), section 1.3 Installing, Updating and Removing Software Packages
* LPI Linux Essentials Study Guide: Exam 010 v1.6, 3rd Edition, chapter 4 Working on the Command Line, section 4.2 Managing Software
* Table of Contents - Linux Professional Institute Certification Programs, section 1.3 Installing, Updating and Removing Software Packages
質問 # 52 
- A. Option C
- B. Option B
- C. Option E
- D. Option D
- E. Option A
正解:A、C
質問 # 53
現在のディレクトリには、次のファイルが含まれています。
-rwxr-xr-x 1ルートルート859688 2月7日8時15分test.sh
このファイルが有効なシェルスクリプトであるとしたら、このスクリプトはどのようにして実行できますか? (正しい答えを2つ選んでください。)
- A. cmd ./test.sh
- B. run test.sh
- C. ${test.sh}
- D. bash test.sh
- E. ./test.sh
正解:D、E
質問 # 54
DNS名をIPアドレスに解決するために使用できるコマンドはどれですか。
- A. host
- B. dns
- C. dnsname
- D. query
- E. iplookup
正解:A
解説:
Explanation
The host command is used to resolve a DNS name to an IP address or vice versa. It can also perform other DNS queries, such as finding the mail servers for a domain. The host command has the following syntax: host
[options] [name] [server]. The name argument can be a hostname, such as www.lpi.org, or an IP address, such as 192.168.0.1. The server argument is optional and specifies the name or IP address of the DNS server to query. If no server is given, the default system resolver is used. References:
* Linux Essentials Version 1.6 Objectives: 1.4.1. Demonstrate an understanding of the purpose and types of DNS records1
* Linux Essentials Version 1.6 Exam Study Resources: Linux Essentials Manual - Chapter 10. Network Fundamentals - 10.3. DNS and Hostname Resolution - 10.3.1. The host Command2
* Linux Essentials Version 1.6 Exam Study Resources: Linux Essentials Manual - Appendix A. Answers to the Exercises - Chapter 10. Network Fundamentals - 10.3. DNS and Hostname Resolution - Exercise
10.3.12
質問 # 55
thedmesgコマンドについて正しいことは何ですか? (正しい答えを2つ選んでください。)
- A. システムジャーナルに書き込まれたすべての新しいメッセージをすぐに出力します。
- B. Linuxカーネルのリングバッファの内容を表示します。
- C. コマンドの実行を追跡し、プログラムが実行する各ステップを表示します。
- D. 現在のすべてのユーザーセッションのコマンドラインにメッセージを送信します。
- E. 新しい情報で上書きされたため、古い情報が表示されない場合があります。
正解:B、E
解説:
Explanation
The dmesg command is used to display the messages from the kernel that are stored in a ring buffer. A ring buffer is a fixed-size data structure that overwrites the oldest entries when it is full. Therefore, the dmesg command might not display older information because it was overwritten by newer information. The dmesg command is useful for troubleshooting system issues and checking hardware information. The dmesg command is not used to trace the execution of a command, send messages to user sessions, or output the system journal. Those functions are performed by other commands such as strace, write, and journalctl respectively. References: : [dmesg] : [Ring buffer] : [strace] : [write (Unix)] : [journalctl]4)
質問 # 56
自動IPアドレス構成に使用されるプロトコルは次のうちどれですか?
- A. DHCP
- B. LDAP
- C. NFS
- D. DNS
- E. SMTP
正解:A
解説:
Explanation
DHCP stands for Dynamic Host Configuration Protocol. It is a protocol that provides quick, automatic, and central management for the distribution of IP addresses within a network. It also configures other network information, such as the subnet mask, default gateway, and DNS server information, on the device1. DHCP uses a client/server architecture, where a DHCP server issues unique IP addresses and automatically configures the devices that request them2. DHCP allows devices to move freely from one network to another and receive an IP address automatically, which is helpful with mobile devices1.
The other options are not protocols used for automatic IP address configuration. NFS stands for Network File System, which is a protocol that allows a user to access and modify files over a network as if they were on their own computer. LDAP stands for Lightweight Directory Access Protocol, which is a protocol that provides access to a centralized directory service that stores information about users, groups, computers, and other resources on a network. SMTP stands for Simple Mail Transfer Protocol, which is a protocol that enables the sending and receiving of email messages over a network. DNS stands for Domain Name System, which is a protocol that translates domain names into IP addresses and vice versa. References:
* Linux Essentials Exam Objectives, Version 1.6, Topic 105.1, Weight 4
* What Is DHCP? (Dynamic Host Configuration Protocol) - Lifewire
* Dynamic Host Configuration Protocol (DHCP) | Microsoft Learn
* Dynamic Host Configuration Protocol - Wikipedia
* How does AutoIP work? - Barix
* [Network File System - Wikipedia]
* [Lightweight Directory Access Protocol - Wikipedia]
* [Simple Mail Transfer Protocol - Wikipedia]
* [Domain Name System - Wikipedia]
質問 # 57 
- A. Option C
- B. Option A
- C. Option B
- D. Option D
- E. Option E
正解:B
質問 # 58
Raspberry Piのオペレーティングシステムはどこに保存されていますか?
- A. Raspberry PiのIDEバスに接続されているマスターデバイスです。
- B. Raspberry PiのGPIOピンに接続されているLinux拡張モジュール上。
- C. Raspberry Piに内蔵されている書き換え可能なフラッシュストレージ。
- D. Raspberry Piに装着されているリムーバブルSDカード
- E. Raspberry PiのファームウェアのBIOSの横にある読み取り専用パーティション。
正解:D
質問 # 59
PATH環境変数の目的は何ですか?
- A. 実行可能ファイルの場所を知らなくてもコマンドを実行できます。
- B. 現在のディレクトリへの絶対パスが含まれています。
- C. ユーザーのホームディレクトリの場所を指定します。
- D. 特定の場所でコマンドが実行されないようにして、セキュリティを強化します。
- E. ユーザーがログインするときに使用されるデフォルトのシェルの場所を示します。
正解:A
解説:
Explanation
The PATH environment variable is a special variable that contains a list of directories that the system searches when looking for a command to execute12. The purpose of the PATH variable is to make it easier and faster for users to run commands without having to type the full path to the executable file. For example, if you want to run the ls command, which is located in the /bin directory, you don't have to type /bin/ls every time. You can just type ls, and the system will find the executable file in the /bin directory, which is one of the directories in the PATH variable. The PATH variable can be viewed with the echo command12:
$ echo $PATH
The PATH variable can also be modified by adding or removing directories, either temporarily or permanently, depending on the user's needs12. For example, if you have acustom script or program in your home directory, and you want to run it from anywhere, you can add your home directory to the PATH variable with the export command12:
$ export PATH=$PATH:~/myprogram
This will append your home directory to the end of the PATH variable, and the system will search it last when looking for a command. To make this change permanent, you need to edit a configuration file, such as
~/.bashrc or ~/.profile, and add the export command there12.
References:
* How To View and Update the Linux PATH Environment Variable | DigitalOcean
* Linux path environment variable - Linux command line - LinuxConfig.org
質問 # 60
現在のディレクトリには、次のファイルが含まれています。
-rw-r-r- 1 root exec 24551 4月2日12時36分test.sh
このファイルには有効なシェルスクリプトが含まれていますが、。/ test.shを使用してこのファイルを実行すると、このエラーが発生します。
bash:./test.sh:許可が拒否されました
スクリプトを正常に実行するために何をすべきですか?
- A. #!./ testを使ってスクリプトを実行する必要があります。 shinstead of./test.sh。
- B. ファイルのアクセス権にSetUIDビットを設定する必要があります
- C. ファイルの許可に実行ビットを設定する必要があります。
- D. ファイルの拡張子を.shto.binから変更する必要があります。
- E. スクリプトを実行しているユーザーをexecグループに追加する必要があります。
正解:C
解説:
Explanation
The execute bit in Linux is a permission bit that allows the user to run an executable file or enter a directory.
For regular files, such as scripts or binaries, the execute bit must be set for the user to run them. For directories, the execute bit allows the user to access the files and subdirectories inside. Therefore, to successfully execute the script test.sh, the execute bit should be set in the file's permissions. This can be done by using the chmod command with the +x option, for example: chmod +x test.sh. The other options are either irrelevant or incorrect. The file's extension does not affect its executability, only its association with a program. The user executing the script does not need to be in the exec group, as long as the user has the execute permission on the file. The SetUID bit is a special permission bit that allows the user to run the file as the file's owner, regardless of the user's identity. This is not necessary for executing the script, and may pose a security risk. The #!./test.sh syntax is invalid, as the #! is used to specify the interpreter for the script, not the script itself. References:
* Linux Essentials Version 1.6 Objectives1, Topic 1.4: Command Line Basics, Subtopic: Basic Shell Commands
* Linux Essentials Version 1.6 Exam Preparation Guide2, Section 1.4: Command Line Basics, Page 16
* Execute vs Read bit. How do directory permissions in Linux work?3
質問 # 61 
正解:
解説:
\
質問 # 62
次のコマンドのどれが、名前が.txtで終わる現在のディレクトリ内のすべてのファイルを含むZIPアーカイブpoems.zipを作成しますか?
- A. zip *.txt > poems.zip
- B. zip poems.zip *.txt
- C. cat *.txt | zip poems.zip
- D. zip cfz poems.zip *.txt
- E. zcat *.txt poems.zip
正解:B
解説:
Explanation
The zip command is used to create compressed archive files that can contain one or more files or directories.
The zip command takes the name of the archive file as the first argument, followed by the names of the files or directories to be included in the archive. You can also use wildcards to match multiple files or directories with a common pattern. For example, the command zip poems.zip *.txt will create the ZIP archive poems.zip containing all files in the current directory whose names end in .txt. The other commands are either invalid or do not perform the desired operation. The command zip *.txt > poems.zip will try to create an archive for each file ending in .txt and redirect the output to poems.zip, which is not a valid archive file. The command zcat
*.txt poems.zip will try to decompress and concatenate the contents of the files ending in .txt and poems.zip, which is not a valid ZIP file. The command zip cfz poems.zip *.txt will fail because the options c, f, and z are not valid for the zip command. The command cat *.txt | zip poems.zip will try to read the contents of the files ending in .txt from the standard input and create an archive named poems.zip, but this will not preserve the file names or attributes of the original files. References:
* Linux Essentials - Linux Professional Institute (LPI), section 3.1.1
* 3.1 Archiving Files on the Command Line - Linux Professional Institute Certification Programs, slide
質問 # 63
ハードディスクドライブとソリッドステートディスクの違いは何ですか? (正しい答えを2つ選んでください。)
- A. ソリッドステートディスクは、ハードディスクよりも保存データへのアクセスが高速です。
- B. ソリッドステートディスクは、ハードディスクドライブの何倍ものデータを保存できます。
- C. ハードディスクにはモーターと可動部品がありますが、ソリッドステートディスクにはありません。
- D. ハードディスクは物理的な損傷によって故障する可能性がありますが、ソリッドステートディスクは故障することはできません。
- E. / dev / sdaはハードディスクデバイス、/ dev / ssdaはソリッドステートディスクです。
正解:A、C
質問 # 64
正規表現のどの演算子が、先行する文字に0回または1回一致しますか?
- A. +
- B. *
- C. $
- D. %
- E. ?
正解:E
質問 # 65
Linuxファイルシステムのリンクには何が当てはまりますか?
- A. シンボリックリンクのターゲットが移動すると、リンクは自動的に更新されます。
- B. ハードリンクはディレクトリのみを指し、ファイルを指すことはできません。
- C. シンボリックリンクは、別のファイルシステム上のファイルを指すことができます。
- D. シンボリックリンクはファイルのみをポイントでき、ディレクトリはポイントできません。
- E. ルートユーザーのみがハードリンクを作成できます。
正解:C
質問 # 66
ディレクトリには、次の3つのファイルがあります。
texts 1.txt
texts 2.txt
texts 3.csv
どのコマンドが、.txtで終わる2つのファイルを/ tmp /ディレクトリにコピーしますか?
- A. cp.\.txt /tmp/
- B. cp ??.txt /tmp/
- C. cp ?.txt /tmp/
- D. cp $?.txt /tmp/
- E. cp *.txt /tmp/
正解:E
解説:
Explanation
The correct command to copy the two files ending in .txt to the /tmp/ directory is cp *.txt /tmp/. This command uses the wildcard character * to match any number of characters beforethe .txt extension. Therefore, it will copy both texts 1.txt and texts 2.txt to the destination directory /tmp/. The other options are incorrect because they use different wildcard characters or syntax that do not match the desired files. For example, option A uses ?? to match exactly two characters before the .txt extension, but the files have a space and a number, which are not considered as one character. Option C uses a backslash \ to escape the dot . before the .txt extension, but this is unnecessary and will cause the command to fail. Option D uses ? to match exactly one character before the .txt extension, but the files have more than one character. Option E uses $? to match the exit status of the previous command before the .txt extension, but this is not relevant and will cause the command to fail123 References: 1: Linux wildcards | How do wildcards work in Linux with examples? - EDUCBA 2: Wildcards in Linux explained with 10 examples | FOSS Linux 3: What are wildcard characters in Linux? - Sage-Answers
質問 # 67
ディレクトリ/ etc / skelに関するどのステートメントが正しいですか? (2つ選択してください。)
- A. ディレクトリのファイルは、アカウントの作成時に新しいユーザーのホームディレクトリにコピーされます。
- B. ディレクトリのファイルは、システムの起動時に新しいユーザーのホームディレクトリにコピーされます。
- C. このディレクトリには、Linuxシステムのグローバル設定が含まれています。
- D. ルートの個人ユーザー設定はこのディレクトリに保存されます。
- E. ディレクトリには、useraddコマンドで使用される構成ファイルのデフォルトセットが含まれています。
正解:A、E
質問 # 68
次のコマンドのどれがディレクトリ/ new / dir /をPATH環境変数に追加しますか?
- A. PATH=/new/dir: PATH
- B. export PATH=/new/dir: $PATH
- C. export $PATH=/new/dir: $PATH
- D. $PATH=/new/dir: $PATH
- E. export PATH=/new/dir: PATH
正解:E
解説:
Explanation
The PATH environment variable is a colon-separated list of directories that the shell searches for commands.
To add a new directory to the PATH, you need to append it to the existing value of the variable, using the syntax PATH=new/dir:PATH. However, this only changes the PATH for the current shell session. To make the change permanent, you need to use the export command, which makes the variable available to all child processes of the shell. The export command takes the name of the variable as an argument, without the dollar sign ($). Therefore, the correct command to add /new/dir/ to the PATH and export it is export PATH=/new/dir:PATH. References:
* Linux Essentials - Linux Professional Institute (LPI)
* How to set the path and environment variables in Windows - Computer Hope
質問 # 69
次の例のうち、シェルスクリプトのforループの一般的な構造を示しているのはどれですか?
- A. for ls *.txt exec {} \;
- B. for *.txt as file => echo $file
- C. foreach @{file} { echo $i
} - D. for file in *.txt do
echo $i done - E. for *.txt ( echo $i )
正解:D
質問 # 70
ユーザーrootのUIDは何ですか?
- A. 0
- B. 1
- C. 2
- D. 3
- E. 4
正解:D
解説:
Explanation
The UID of the user root is always 0 on Linux systems. This is because the kernel uses the UID 0 to check for the superuser privileges and grant access to all system resources. The name of the user account with UID 0 is usually root, but it can be changed or have aliases. However, some applications may expect the name root and not work properly with a different name. The UID 0 is reserved for the root user and cannot be assigned to any other user. The UID 0 is stored in the /etc/passwd file along with other user information. References:
* Linux Essentials Topic 104: The Linux Operating System, section 104.4: Runlevels and Boot Targets.
* Linux Essentials Topic 106: Security and File Permissions, section 106.1: Basic security and identifying user types.
* Linux Essentials Topic 106: Security and File Permissions, section 106.2: Creating users and groups.
質問 # 71 
- A. export-logs | sort
- B. export-logs & sort
- C. export-logs <> sort
- D. export-logs > sort
- E. export-logs < sort
正解:A
質問 # 72
......
010-160日本語認定ガイドPDFは100%カバー率でリアル試験問題:https://jp.fast2test.com/010-160J-premium-file.html