デバイス上のスワップを無効にするコマンドはどれですか? (パスやパラメータを指定せずにコマンドのみを指定します。)
A. /sbin/swapoff
B. スワップオフ
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
質問 2:
-vオプションを使用した場合のegrepコマンドの効果は何ですか?
A. コマンドのバージョン情報を表示します。
B. 一致する部分を強調する色を有効にします。
C. 最後に一致した行を最初に表示する出力順序を変更します。
D. 一致しない行のみを出力します。
正解:D
解説: (Pass4Test メンバーにのみ表示されます)
質問 3:
次のコマンドのうち、/ dev / sdb1にext3ファイルシステムを作成するのはどれですか? (2つの正解を選択してください。)
A. /sbin/mkfs -c ext3 /dev/sdb1
B. /sbin/mke2fs -j /dev/sdb1
C. /sbin/mke3fs -j /dev/sdb1
D. /sbin/mkfs -t ext3 /dev/sdb1
正解:B,D
解説: (Pass4Test メンバーにのみ表示されます)
質問 4:
Bashビルトインエクスポートコマンドの目的は何ですか?
A. アプリケーションの環境変数を設定します。
B. ディスクをリモートでマウントできます。
C. ネットワーク上の他のシステムが使用するNFSパーティションを共有します。
D. コマンド履歴をサブシェルで利用できるようにします。
E. サブシェル内のプロセスとしてコマンドを実行します。
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
質問 5:
ハードディスクドライブをパーティション分割するときに、Linuxスワップスペースに使用されるパーティションタイプは次のうちどれですか?
A. 82
B. fd
C. 83
D. 8e
E. 7
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
質問 6:
バイナリ実行可能ファイルまたは別の共有ライブラリに必要なすべての共有ライブラリを表示するコマンドはどれですか?
(パスまたはパラメーターなしでコマンドのみを指定します。)
正解:
ldd
Explanation
The command that shows all shared libraries required by a binary executable or another shared library is ldd.
This command queries the dynamic linker to find out which libraries are needed by the given file and displays them on the standard output. For example, to see the shared libraries required by the /bin/ls program, we can run:
ldd /bin/ls
The output will look something like this:
linux-vdso.so.1 (0x00007ffd8a7f6000)libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f0c5a6c4000)libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0c5a4d3000)libpcre2-8.so.0 =>
/usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007f0c5a445000)libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0c5a441000)/lib64/ld-linux-x86-64.so.2 (0x00007f0c5a8a5000)libpthread.so.0 =>
/lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0c5a41e000)
The output shows the name and the path of each shared library, as well as the address where it is loaded in memory. If the library is not found, the output will show not found instead of the path. The linux-vdso.so.1 library is a special case, as it is a virtual library that is not actually present on the filesystem, but is injected by the kernel into every process12.
References:
* How to Show All Shared Libraries Used by Executables in Linux? - Baeldung
* How to show all shared libraries used by executables in Linux? - Stack Overflow
Nakajyo -
初学で一発合格できたのはPass4Testさんのおかげです。問題集にてひたすら勉強して、試験中にかなり順調に回答しました。