検証済みの101-500日本語問題集と解答で合格保証もしくは全額返金 [2025年11月]
101-500日本語のPDF問題集で2025年11月14日最近更新された問題
質問 # 297
SysV initベースのシステムのinitプロセスのプロセスID番号は何ですか?
- A. 0
- B. 再起動ごとに異なります。
- C. 1
- D. 現在の実行レベルに設定されます。
- E. 2
正解:E
解説:
Explanation
The process ID number of the init process on a SysV init based system is 1. The init process is the first process that runs on the system, and it is responsible for initializing the user-space environment and spawning all other processes. The init process is always the first process that runs on the system, and it has the process ID (PID) of 1. The PID is a unique identifier for each process on the system, and it is assigned by the kernel.
The PID of the init process is always 1, regardless of the reboot or the run level. You can verify the PID of the init process by using the ps command, which shows information about the processes on the system. For example, to show the PID, the user, the command, and the arguments of the init process, use the following command:
ps -p 1 -o pid,user,cmd
The output of the command will show something like:
PID USER CMD 1 root /sbin/init
This shows that the init process has the PID of 1, the user of root, and the command of /sbin/init.
References:
* [SysVinit - ArchWiki]
* [Process Management in Linux - GeeksforGeeks]
* [ps(1) - Linux manual page]
質問 # 298
パッケージを削除したり、まだインストールされていない新しいパッケージをインストールしたりせずに、現在インストールされているすべてのパッケージの最新バージョンをインストールするapt-getコマンドはどれですか?
- A. 自動更新
- B. 更新
- C. dist-upgrade
- D. インストール
- E. アップグレード
正解:E
解説:
Explanation
The apt-get command upgrade will install the newest versions of all currently installed packages without removing any packages or installing new packages that are not already installed. It will only upgrade packages that can be upgraded without changing the dependencies1. The syntax is: apt-get upgrade. For example, apt-get upgrade nginx will update the nginx package to the latest version available in the repositories, if there is one2. The other options are not correct because:
* auto-update is not a valid apt-get command.
* dist-upgrade will also install new packages or remove existing packages if that is required to resolve a package conflict1. It is more aggressive than upgrade and may change the system in unexpected ways3.
* install will install new packages or upgrade existing packages to the specified version1. It may also install or remove dependencies as needed4.
* update will only resynchronize the package index files from the sources, but it will not install or upgrade any packages1. References:
* apt-get(8) - apt - Debian buster - Debian Manpages
* How to Update Nginx on Ubuntu 18.04 | Linuxize
* What is "dist-upgrade" and why does it upgrade more than "upgrade"? - Ask Ubuntu
* How to Install Specific Version of Package using apt-get - TecAdmin
質問 # 299
コマンドに関して正しいのはどれか
ls > ファイル
ファイルが存在しない場合は?
- A. ファイルが作成され、ls の出力が含まれます。
- B. ls の出力はすべて破棄されます。
- C. エラーメッセージが表示され、lsが実行されない
- D. コマンド ファイルが実行され、ls の出力を受け取ります。
- E. ls の出力が端末に出力されます。
正解:A
解説:
Explanation
The command ls > files uses the output redirection operator > to send the output of the ls command to a file named files. If the file does not exist, it will be created and will contain the output of the ls command, which is the list of files and directories in the current working directory. This is explained in the first web search result 1 and the second web search result 2. References: 1: Input Output & Error Redirection in Linux
[Beginner's Guide] 2: Redirections (Bash Reference Manual)
質問 # 300
Bashプロセスを終了するときにユーザー履歴が保存されるファイルを定義するBash環境変数はどれですか?
(変数名のみを指定してください。)
正解:
解説:
HISTFILE
The HISTFILE environment variable defines in which file the user history is stored when exiting a Bash process. The user history is a list of commands that the user has entered in the Bash shell. By default, the HISTFILE variable is set to ~/.bash_history, which means that the history is stored in a hidden file called
.bash_history in the user's home directory. The user can change the value of the HISTFILE variable to store the history in a different file or location. For example, the following command will set the HISTFILE variable to ~/my_history:
export HISTFILE=~/my_history
This will cause the history to be stored in a file called my_history in the user's home directory. The user can also unset the HISTFILE variable to disable the history saving feature. For example, the following command will unset the HISTFILE variable:
unset HISTFILE
This will prevent the history from being written to any file when the Bash process exits. The user can view the value of the HISTFILE variable by using the echo command. For example, the following command will display the value of the HISTFILE variable:
echo $HISTFILE
The output will be something like:
/home/user/.bash_history
References:
* [LPI Exam 101 Detailed Objectives], Topic 103: GNU and Unix Commands, Objective 103.1: Work on the command line, Weight: 4, Key Knowledge Areas: Use of history and HISTFILE.
* How To Read and Set Environmental and Shell Variables on Linux, Topic: How the Environment and Environmental Variables Work.
質問 # 301
コマンド foo でファイル foobar から入力を取得し、出力をプログラム bar に送信します。次のどのコマンド ラインがこれを実行しますか。
- A. foo < foobar > bar
- B. foo > bar < foobar
- C. foo | foobar > bar
- D. foo | bar < foobar
- E. foo < foobar | bar
正解:E
質問 # 302
dpkgベースのパッケージ管理を使用する場合、使用可能なパッケージのリストを更新するために使用されるコマンドは次のうちどれですか?
- A. apt-cache update
- B. apt-get upgrade
- C. apt-get update
- D. apt-get refresh
- E. apt-cache upgrade
正解:C
解説:
Explanation
The command that is used to update the list of available packages when using dpkg based package management is apt-get update12. The apt-get command is a high-level tool that works with dpkg and provides a user-friendly interface for managing packages3. The apt-get update command is used to synchronize the package index files from the sources specified in the /etc/apt/sources.list file12. This command does not install or upgrade any packages, but only downloads the information about the latest versions and dependencies of the packages12. The apt-get update command is usually run before the apt-get upgrade or apt-get install commands, which are used to upgrade or install packages respectively12.
The other options in the question are not correct because:
* B. apt-get upgrade: This command is used to upgrade the installed packages to the latest versions, not to update the list of available packages12.
* C. apt-cache update: There is no such command in Linux. The apt-cache command is used to query and display information about the packages, not to update them4.
* D. apt-get refresh: There is no such command in Linux. The closest command is apt-get update, which is the correct answer.
* E. apt-cache upgrade: There is no such command in Linux. The closest command is apt-get upgrade, which is not the correct answer.
References:
1: How To Manage Packages Using apt-get, apt-cache, apt-file and dpkg Commands In Debian Based Systems 2: Ubuntu Manpage: apt-get - APT package handling utility - command-line interface 3: dpkg - Debian Wiki 4: Ubuntu Manpage: apt-cache - query the APT cache
質問 # 303
次の正規表現のうち、単一の大文字を表すものはどれですか?
- A. %C
- B. [A-Z]
- C. !a-z
- D. {AZ}
- E. :UPPER:
正解:B
解説:
Explanation
The regular expression that represents a single upper-case letter is [A-Z]. This is a character class that matches any one character from the range A to Z, which are the 26 upper-case letters of the English alphabet. A character class is enclosed in square brackets and can contain a list or a range of characters to match. For example, [abc] matches any one of the letters a, b, or c, and [0-9] matches any one digit from 0 to 9. The other options are not valid regular expressions for a single upper-case letter. The :UPPER: option is not a valid syntax for a character class, and it would be interpreted as a literal string of seven characters. The !a-z option is not a valid syntax for a negated character class, and it would be interpreted as a literal string of four characters. The %C option is not a valid syntax for a character class, and it would be interpreted as a literal string of two characters. The {AZ} option is not a valid syntax for a character class, and it would be interpreted as a literal string of four characters. The curly braces are used for interval expressions, which specify the number of repetitions of a character or a group of characters. For example, a{2,4} matches the letter a repeated two, three, or four times. References:
* How to Use Regular Expressions (regexes) on Linux1
* How to Use Regular Expressions (RegEx) on Linux2
* A beginner's guide to regular expressions with grep3
質問 # 304 
- A. Option B
- B. Option C
- C. Option E
- D. Option A
- E. Option D
正解:A
質問 # 305 
- A. Option B
- B. Option C
- C. Option E
- D. Option A
- E. Option D
正解:A
質問 # 306
次のコマンドのうち、bash スクリプト /usr/local/bin/runme.sh を実行しないものはどれですか?
- A. /usr/local/bin/runme.sh を実行します。
- B. /bin/bash /usr/local/bin/runme.sh
- C. /usr/local/bin/runme.sh
- D. . /usr/local/bin/runme.sh
- E. ソース /usr/local/bin/runme.sh
正解:A
質問 # 307
現在のファイルをfilea.txtとして保存するには、viを終了する前にどのコマンドを入力する必要がありますか?
- A. :s filea.txt
- B. :w filea.txt
- C. %w filea.txt
- D. :save filea.txt
- E. %s filea.txt
正解:B
質問 # 308
シミュレーション
マウントされたすべてのファイル システムの現在のディスク領域使用量を表示するコマンドはどれですか? (パスやパラメーターを指定せずにコマンドのみを指定します。)
正解:
解説:
du
質問 # 309
別のコンピュータとの PPP リンクを確立するにはどのようなプログラムが必要ですか?
- A. pppd
- B. クップップ
- C. wvdial
- D. パッド
正解:A
質問 # 310
GRUB Legacy構成ファイルで次のオプションのうち、GRUBメニューがユーザーに表示される時間を定義するために使用されるのはどれですか?
- A. timeout
- B. hidemenu
- C. splash
- D. showmenu
正解:A
解説:
Explanation
The timeout option in a GRUB Legacy configuration file is used to define the amount of time (in seconds) that the GRUB menu will be shown to the user before booting the default entry. The timeout option is usually located in the /boot/grub/menu.lst file. For example, timeout 10 will display the GRUB menu for 10 seconds.
To disable the timeout and wait for user input indefinitely, the value of timeout can be set to -1. To boot immediately without displaying the menu, the value of timeout can be set to 0. The other options are not valid for the GRUB Legacy configuration file. References:
* GRUB Legacy - ArchWiki
* How do I set the grub timeout and the grub default boot entry?
* How to Remove the Timeout From GRUB Menu
質問 # 311
命令に関して正しいのはどれか
ls > ファイル
ファイルが存在しない場合は?
- A. コマンドfilesが実行され、lsの出力を受け取ります。
- B. lsの出力が端末に出力される
- C. ファイルが作成され、lsの出力が含まれます。
- D. エラーメッセージが表示され、lsは実行されません
- E. lsの出力はすべて破棄されます
正解:C
質問 # 312
キーボードとマウスは、USB デバイスのどのクラスに属しますか?
- A. データ インターフェース デバイス クラス
- B. ヒューマンインターフェースデバイスクラス
- C. マスストレージデバイスクラス
- D. 通信デバイスクラス
正解:B
質問 # 313 
- A. Option B
- B. Option E
- C. Option A
- D. Option C
- E. Option D
正解:D
質問 # 314
次のコマンドのうち、コマンド ラインで指定されたファイルによって使用されているディスク容量を出力するのはどれですか。
- A. dd
- B. 直流
- C. df
- D. デュ
正解:D
質問 # 315 
正解:
解説:
質問 # 316
viエディターの次のシーケンスのうち、開いているドキュメントを保存してエディターを終了するものはどれですか? (2つの正解を選択してください。)
- A. ctrl :w!
- B. esc zz
- C. ctrl XX
- D. esc ZZ
- E. esc :wq!
正解:D、E
解説:
Explanation
To save a file and exit the vi/vim editor, you need to switch to command mode by pressing the Esc key, then type a colon (:) followed by a command. There are two commands that can save a file and quit the editor: x and wq. The x command writes the buffer to the file only if there are unsaved changes, while the wq command always writes the buffer to the file and updates the file modification time. Both commands are followed by an exclamation mark (!) to force the operation and override any warnings. Therefore, the correct sequences are:
* Esc ZZ: This is equivalent to typing :x and hitting Enter.
* Esc :wq!: This writes the buffer to the file and quits the editor, ignoring any warnings.
The other options are incorrect because:
* Ctrl :w! is not a valid sequence. The Ctrl key does not switch to command mode, and the w command only saves the file without exiting.
* Esc zz is not a valid sequence. The zz command does not exist in vi/vim.
* Ctrl XX is not a valid sequence. The Ctrl key does not switch to command mode, and the XX command does not exist in vi/vim.
References:
* How to Save a File in Vi / Vim Editor & Quit - phoenixNAP
* How to Save a File in Vim / Vi and Quit the Editor | Linuxize
* How To Save a File in Vi / Vim Text Editor - nixCraft
* How to Save a File in Vi / Vim Editor & Quit - GeeksforGeeks
質問 # 317 
- A. Option B
- B. Option E
- C. Option A
- D. Option C
- E. Option D
正解:A、B、D
質問 # 318
/ dev / sr0にすでに挿入されているCD-ROMを、root権限で発行されたときに既存のディレクトリ/ mnt / cdromにマウントするコマンドは次のうちどれですか
- A. mount /dev/sr0 /mnt/cdrom
- B. mount -f /dev/sr0/mnt/cdrom
- C. mount /dev/cdrom /mnt/cdrom
- D. mount -t cdrom /dev/sr0 /mnt/cdrom
- E. mount -l cdrom /dev/sr0 /mnt/cdrom
正解:A
解説:
Explanation
The mount command is used to attach a filesystem to a directory on the system, which is called a mount point.
The mount command requires the device name or the UUID of the filesystem as the first argument, and the mount point as the second argument. Optionally, the mount command can also take some options, such as the filesystem type, the mount options, and the label. The syntax of the mount command is:
mount [options] device mountpoint
In this question, the device name of the CD-ROM is /dev/sr0, and the mount point is /mnt/cdrom. Therefore, the correct command to mount the CD-ROM is:
mount /dev/sr0 /mnt/cdrom
This command will mount the CD-ROM as a read-only filesystem with the type iso9660, which is the standard format for optical discs. The mount command can automatically detect the filesystem type and the mount options, so there is no need to specify them explicitly. However, if you want to specify them, you can use the
-t and -o options, respectively. For example, the following command is equivalent to the previous one:
mount -t iso9660 -o ro /dev/sr0 /mnt/cdrom
The other options are not correct because:
* A. mount /dev/cdrom /mnt/cdrom: This command may work on some systems, but it is not guaranteed to be correct. The /dev/cdrom is usually a symbolic link to the actual device name of the CD-ROM, which can vary depending on the system. For example, on some systems, the /dev/cdrom may point to
/dev/sr0, but on others, it may point to /dev/scd0 or /dev/hdc. Therefore, it is better to use the actual device name of the CD-ROM, which can be found by using the lsblk or the dmesg command.
* C. mount -t cdrom /dev/sr0 /mnt/cdrom: This command is not valid because cdrom is not a valid filesystem type. The filesystem type for optical discs is iso9660, not cdrom. The mount command will fail with an error message saying:
mount: unknown filesystem type 'cdrom'
* D. mount -l cdrom /dev/sr0 /mnt/cdrom: This command is not valid because -l is not a valid option for the mount command. The -l option is used to list all the mounted filesystems, not to mount a filesystem.
The mount command will fail with an error message saying:
mount: can't find /dev/sr0 in /etc/fstab
* E. mount -f /dev/sr0/mnt/cdrom: This command is not valid because it is missing a space between the device name and the mount point. The mount command requires two separate arguments for the device name and the mount point, separated by a space. Also, the -f option is used to fake the mount operation, not to perform the actual mount. The mount command will fail with an error message saying:
mount: /dev/sr0/mnt/cdrom: mount point does not exist.
References:
* How to mount cdrom in Linux - Learn Linux Configuration
* Mount CD-ROM in Linux using Command Line - nixCraft
* Mounting the CD or DVD (Linux) - IBM
質問 # 319
ファイルのデフォルトのアクセス許可が600(rw-------)になり、(rwx)になるumask値はいくらですか?
------) ディレクトリ用ですか? (数値の umask 値のみを指定してください)
正解:
解説:
0077
質問 # 320
......
101-500日本語試験問題有効な101-500日本語問題集PDF:https://www.passtest.jp/Lpi/101-500J-shiken.html