How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?
A. unset -v FOOBAR;./myscript
B. env -u FOOBAR./myscript
C. set -a FOOBAR="";./myscript
D. env -i FOOBAR./myscript
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
質問 2:
Which of the following commands puts the output of the command date into the shell variable mydate?
A. mydate="$((date))"
B. mydate="exec date"
C. mydate="$(date)"
D. mydate="${date}"
E. mydate="date"
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 3:
By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.)
正解:
etcskel
Explanation:
The /etc/skel directory contains files and directories that are used as a template for creating a new user's home directory. The useradd command uses the -m (or --create-home) option to create the user home directory as /home/username and copy the files from /etc/skel to it. The files in /etc/skel are typically initialization files such as .bashrc, .profile, and .bash_logout that set the user's environment variables, aliases, and other preferences. The system administrator can customize the /etc/skel directory to provide a consistent and convenient initial setup for new users. Reference:
https://www.howtouselinux.com/post/create-new-user-with-home-directory-in-linux
https://linuxize.com/post/how-to-create-users-in-linux-using-the-useradd-command/
質問 4:
The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section?
A. It is placed between a line containing Section "SectionName" and a line containing EndSection.
B. It is placed between the tags <Section name="SectionName"> and </Section>
C. It is placed after the row [SectionName].
D. It is placed after an initial unindented Section "SectionName" and must be indented by exactly one tab character.
E. It is placed in curly brackets as in Section SectionName { ... }.
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
質問 5:
With X11 forwarding in ssh, what environment variable is automatically set in the remote host shell that is not set when X11 forwarding is not enabled? (Specify only the environment variable without any additional commands or values.)
正解:
ISPLAYDISPLAY
Explanation:
With X11 forwarding in ssh, the environment variable that is automatically set in the remote host shell is DISPLAY. This variable specifies the name of the X display to which X11 clients should connect. When X11 forwarding is enabled, the ssh server sets the DISPLAY variable to a value like localhost:10.0, which means that the X11 clients will connect to a proxy X11 display on the remote host. The proxy display will then forward the X11 protocol over ssh to the X server on the local host. This way, the X11 clients can display their graphical output on the local host, even though they are running on the remote host. If X11 forwarding is not enabled, the DISPLAY variable is not set by the ssh server, and the X11 clients will not be able to connect to any X display unless the user manually sets the DISPLAY variable to a valid value. However, this may not work if the X server on the local host does not allow remote connections or if there are firewall rules that block the X11 traffic.
Reference:
3: Built-in SSH X11 forwarding in PowerShell or Windows Command Prompt - X410
4: Understanding X11 Forwarding through SSH - start to finish steps
1: Why use ssh X11 forwarding with LSF; How to use ssh X11 forwarding - IBM
質問 6:
Which of the following fields are available in both the global /etc/crontab file as well as in user-specific crontab files? (Select TWO correct answers)
A. Username
B. Minute
C. Year
D. Command
正解:B,D
解説: (Pass4Test メンバーにのみ表示されます)
質問 7:
Which directory holds the files that configure the xinetd service when using several configuration files instead of an integrated configuration file? (Specify the full path to the directory.)
正解:
etcxinetddetcxinetdd
Explanation:
The /etc/xinetd.d/ directory holds the files that configure the xinetd service when using several configuration files instead of an integrated configuration file. Each file in this directory corresponds to a specific service that is managed by xinetd, such as telnet, ftp, ssh, etc. The name of the file matches the name of the service. The files in this directory contain service-specific options that override or supplement the global options defined in the /etc/xinetd.conf file. The files are read only when the xinetd service is started, so any changes require a restart of the service. The /etc/xinetd.d/ directory allows for a modular and flexible configuration of the xinetd service, as well as easier management and maintenance of the individual service files. Reference:
How to configure xinetd ? - Red Hat Customer Portal
Understanding /etc/xinetd.d directory under Linux
xinetd - Wikipedia
質問 8:
Which of the following details is NOT provided in any output from the netstat utility?
A. broadcast services
B. interface statistics
C. masquerading connections
D. routing tables
E. network connections
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
Tachibana -
社会人では勉強のための時間がとれないので、数ある102-500テキストや問題集をばらばらにやるのではなく、この一冊に絞ってもいいと思います。