2025年09月05日に更新された最新のリアル101-500日本語問題集で101-500日本語試験問題 [Q113-Q138]

Share

2025年09月05日に更新された最新のJPNTest 101-500日本語試験問題リアル101-500日本語問題集で

101-500日本語別格な問題集で最上級の成績にさせる101-500日本語問題

質問 # 113
Bashでは、コマンドのリダイレクト後に1>&2を挿入します

  • A. 標準出力から標準エラーへ。
  • B. 標準入力への標準エラー。
  • C. 標準入力から標準エラーへ。
  • D. 標準入力から標準入力へ。
  • E. 標準出力への標準エラー。

正解:A

解説:
Explanation
In Bash, inserting 1>&2 after a command redirects standard output to standard error. This means that the output of the command that normally goes to the standard output stream (file descriptor 1) will be sent to the standard error stream (file descriptor 2) instead. This can be useful if we want to capture or discard both the normal output and the error output of a command. For example, if we want to run a command and send both its output and error to /dev/null (a special device that discards any data written to it), we can use:
command > /dev/null 1>&2
This will redirect the standard output of command to /dev/null, and then redirect the standard error of command to the same place as the standard output, which is /dev/null. The other options are not correct because:
* A. standard error to standard input: This is not possible, because standard input is a read-only stream, and we cannot redirect output to it.
* B. standard input to standard error: This is not what 1>&2 does, because 1 refers to standard output, not standard input. To redirect standard input to standard error, we would need to use 0>&2, where 0 refers to standard input.
* D. standard error to standard output: This is not what 1>&2 does, because it would require the opposite order of file descriptors: 2>&1. This would redirect standard error to standard output, not the other way around.
* E. standard output to standard input: This is not possible, for the same reason as option A. References:
* Bash redirections cheat sheet
* How to redirect stderr to a file - Linuxize


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


質問 # 115

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

正解:A


質問 # 116
GNU GRUB のメイン設定ファイルの名前は何ですか? (パスなしでファイル名のみを指定します。)

正解:

解説:
menu.lst, grub.conf, grub.cfg


質問 # 117
特定のファイルの i-node 情報を表示するコマンドはどれですか?
答えはb)istatです。

  • A. イスタット
  • B. ls
  • C. ps
  • D. fstat

正解:A


質問 # 118

正解:

解説:


質問 # 119

  • A. rpm -qp apache-xml.rpm
  • B. rpm -ql apache-xml.rpm
  • C. rpm -qv apache-xml.rpm
  • D. rpm -qpl apache-xml.rpm

正解:D


質問 # 120
次のカーネルパラメーターのどれがカーネルにほとんどのブートメッセージを抑制するように指示しますか?

  • A. verbose=0
  • B. quiet
  • C. silent
  • D. nomesg

正解:B

解説:
Explanation
The quiet kernel parameter instructs the kernel to suppress most boot messages, except for critical errors12. The quiet parameter can be added to the GRUB_CMDLINE_LINUX_DEFAULT variable in the
/etc/default/grub file and then run sudo update-grub to apply the changes3. The quiet parameter can also be used in combination with other parameters, such as splash, to enable a graphical boot screen4.
The other options in the question are not valid or do not have the same functionality as the quiet parameter:
* silent: There is no such kernel parameter in Linux.
* verbose=0: This parameter is used to set the verbosity level of the kernel messages, but it does not suppress them completely. The valid values for this parameter are from 0 (quiet) to 7 (debug)5.
* nomesg: This parameter is used to disable all kernel messages on the console, including the emergency ones. This parameter is not recommended for normal use, as it can hide critical errors and prevent troubleshooting.
References:
1: Getting the Kernel Command-Line Parameters | Baeldung on Linux 2: How to mute kernel messages at startup in Arch Linux? 3: boot - How to turn off the filesystem check message which occures while booting - Ask Ubuntu 4: [How to enable a graphical boot screen on Ubuntu 18.04 LTS - LinuxConfig.org] 5: [Kernel parameters - ArchWiki] : [Linux Kernel Parameters - SysTutorials]


質問 # 121

  • A. depmod
  • B. loadmod
  • C. insmod
  • D. modprobe
  • E. module_install

正解:D


質問 # 122
パーティションスキームを計画するとき、次のディレクトリのどれを個別のパーティションとして検討できますか? (3つ選択してください。)

  • A. /opt
  • B. /etc
  • C. /var
  • D. /lib
  • E. /home

正解:E


質問 # 123
次のコマンドのうち、指定されたdpkgパッケージの依存関係をリストするものはどれですか?

  • A. apt-cache依存パッケージ
  • B. apt-cacheにはパッケージが必要です
  • C. apt-cache depend-onpackage
  • D. apt-cacheはパッケージに依存します

正解:D

解説:
Explanation
The apt-cache command is used to query the APT cache for information about packages. The depends option shows a listing of each dependency a package has and all the possible other packages that can fulfill that dependency. For example, apt-cache depends ubuntu-restricted-extras will show the dependencies of the ubuntu-restricted-extras package. The other options are not valid for the apt-cache command. References:
* How to Check Dependencies of a Package in Ubuntu/Debian-based Linux Distributions
* Check DEB package dependencies on Ubuntu / Debian


質問 # 124

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

正解:A、C


質問 # 125
Bash内で有効なストリームリダイレクト演算子は次のうちどれですか? (2つ選択してください。)

  • A. <
  • B. %>
  • C. 2>&1
  • D. >>>
  • E. #>

正解:A、C

解説:
Explanation
The stream redirection operators within Bash are used to redirect the input and output of commands to files, devices, or other commands. The valid stream redirection operators within Bash are:
* < : This operator redirects the standard input (STDIN) of a command from a file or device. For example, wc -l < file.txt counts the number of lines in file.txt by using it as the input for the wc command.
* > : This operator redirects the standard output (STDOUT) of a command to a file or device, overwriting any existing content. For example, echo "Hello World" > file.txt writes the string "Hello World" to file.txt, replacing any previous content.
* >> : This operator redirects the standard output (STDOUT) of a command to a file or device, appending to any existing content. For example, echo "Hello World" >> file.txt writes the string "Hello World" to file.txt, without deleting any previous content.
* >& : This operator redirects one file descriptor to another file descriptor. A file descriptor is a number that represents an open file or device. The standard input (STDIN) has the file descriptor 0, the standard output (STDOUT) has the file descriptor 1, and the standard error (STDERR) has the file descriptor 2.
For example, command > file 2>&1 redirects both the standard output and standard error of the command to the file.
* <& : This operator redirects one file descriptor from another file descriptor. For example, command
<&3 redirects the standard input of the command from the file descriptor 3.
The other operators are not valid stream redirection operators within Bash. They will cause syntax errors or unexpected behavior. For example, #> is a comment followed by a redirection operator, %> is a modulo operator followed by a redirection operator, and >>> is a bitwise right shift operator followed by a redirection operator.
References:
* Redirections (Bash Reference Manual)
* Guide to Stream Redirections in Linux | Baeldung on Linux
* Standard Streams in Bash | Delft Stack
* Bash Tutorial => Redirection
* stream redirection order and what os perform in details


質問 # 126

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

正解:B


質問 # 127

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

正解:B


質問 # 128
通常のファイルfooへのbarと呼ばれるハードリンクを正常に作成した後、fooはファイルシステムから削除されます。
結果の状況を説明するのは次のうちどれですか?

  • A. fooは削除されますが、barはアクセス可能なままです。
  • B. ユーザーは、バーも削除するかどうかを尋ねられます。
  • C. fooとbarは両方とも削除されます。
  • D. fooとbarはどちらもアクセス可能なままです。
  • E. fooは削除されます。 barはまだ存在しますが、使用できません。

正解:A


質問 # 129
次のコマンドラインを指定した場合。
echo "foo bar" |ティーバー|ネコ
次の出力のどれが作成されますか?

  • A. bar
  • B. tee bar
  • C. cat
  • D. foo bar
  • E. foo

正解:D


質問 # 130
次のコマンドのうち、次の出力を生成するのはどれですか?

  • A. ps
  • B. netstat
  • C. proclist
  • D. jobs

正解:A


質問 # 131

正解:

解説:


質問 # 132
ユーザーのホームディレクトリにある次のファイルのうち、Bashの履歴が含まれているのはどれですか?

  • A. .history
  • B. .bash_histfile
  • C. .bash_history
  • D. .bashrc_history
  • E. .history_bash

正解:C

解説:
Explanation
The correct answer is D, .bash_history. This file, located in a user's home directory, contains the Bash history, which is a list of commands that the user has entered in the Bash shell. The syntax of the file is:
~/.bash_history
The ~ symbol represents the user's home directory, which is usually /home/username. The / symbol is a directory separator that separates the components of a path. The . symbol at the beginning of the file name indicates that the file is hidden, which means that it is not normally displayed by the ls command or the file manager, unless the -a option or the show hidden files option is used. The bash_history is the name of the file that stores the Bash history.
The Bash history is maintained by the Bash shell while it is running, and it is written to the .bash_history file when the shell exits or when the history -a or -w options are used. The history command can be used to display, manipulate, or search the Bash history. The HISTFILE variable can be used to change the name or location of the .bash_history file. The HISTSIZE and HISTFILESIZE variables can be used to change the number of commands that are stored in the Bash history and the .bash_history file, respectively.
The other files are incorrect for the following reasons:
* A, .bashrc_history: This file does not exist by default, and it is not used to store the Bash history. The
.bashrc file is a configuration file that is executed by the Bash shell when it starts in interactive mode. It can contain commands, aliases, functions, variables, or other settings that affect the behavior of the shell. However, it is not used to store the history of the commands that the user has entered.
* B, .bash_histfile: This file does not exist by default, and it is not used to store the Bash history. The
.bash_histfile file is not a standard file name, and it is not recognized by the Bash shell. The Bash shell uses the .bash_history file to store the history of the commands that the user has entered, unless the HISTFILE variable is changed to a different file name.
* C, .history: This file does not exist by default, and it is not used to store the Bash history. The .history file is not a standard file name, and it is not recognized by the Bash shell. The Bash shell uses the
.bash_history file to store the history of the commands that the user has entered, unless the HISTFILE variable is changed to a different file name.
* E, .history_bash: This file does not exist by default, and it is not used to store the Bash history. The
.history_bash file is not a standard file name, and it is not recognized by the Bash shell. The Bash shell uses the .bash_history file to store the history of the commands that the user has entered, unless the HISTFILE variable is changed to a different file name.
References:
* Where is bash's history stored? - Unix & Linux Stack Exchange
* How to view the .bash_history file via command line? - Ask Ubuntu
* shell - How can I see all of the bash history? - Stack Overflow


質問 # 133
長い手紙を書き終えた後、"Bob" という名前を何度も使用したが、多くの場合大文字にし忘れていたことに気付きました。
どのコマンドが、すべてのインスタンスで「bob」を「Bob」に置き換え、印刷用の新しい文字を生成するでしょうか?

  • A. sed 's/bob/Bob/g' letter > ニュースレター
  • B. sed s/bob/Bob/ letter < newletter
  • C. sed 's/bob, Bob/' letter > newletter
  • D. sed 's/bob/Bob' letter > newletter
  • E. sed '/bob/Bob' レター > ニュースレター

正解:A


質問 # 134

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

正解:B


質問 # 135
ブロックデバイス名のみで追加パラメータなしで実行された場合、mkfsによって作成されるファイルシステムのタイプは何ですか?

  • A. VFAT
  • B. ext2
  • C. XFS
  • D. ext3
  • E. ext4

正解:B

解説:
Explanation
The mkfs command creates a file system on a given device partition. If the type of file system is not specified, the default file system type is ext2. This is mentioned in the man page of mkfs1 and also in the article by How-To Geek2. Ext2 is an older file system that does not support journaling, which is a feature that allows the file system to recover from crashes or power failures. Ext2 is not very commonly used nowadays, as most Linux systems prefer ext4 or other file systems that support journaling and other features. References:
* How to Use the mkfs Command on Linux - How-To Geek
* mkfs(8): build file system - Linux man page


質問 # 136
次のコマンドのうち、テキストファイルの最後の10行を標準出力に印刷するものはどれですか?

  • A. head -n 10 filename
  • B. cat -n 10ファイル名
  • C. テール-n 10ファイル名
  • D. dump -n 10 filename

正解:C


質問 # 137
opensshというパッケージの詳細情報を表示するRPMコマンドは何ですか?
3.6.i386.rpm?

  • A. rpm --query --info --package openssh-3.6.i386.rpm
  • B. rpm --verify openssh-3.6.i386.rpm
  • C. rpm --showdetails --package openssh-3.6.i386.rpm
  • D. rpm --showinformation openssh-3.6.i386.rpm

正解:A


質問 # 138
......

101-500日本語試験問題集でベスト101-500日本語試験問題を試そう:https://www.jpntest.com/shiken/101-500J-mondaishu

弊社を連絡する

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

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

サポート:現在連絡