An administrator needs to change the IP address on a server remotely. After updating the configuration files, a network restart is needed. However, the administrator fears that when the network connection drops, the network restart script will be killed before the new IP address has been set.
Which of the following commands would prevent the script from being killed?
A. service network restart &
B. dg service network restart
C. echo "service network restart" | at now
D. nohup service network restart
正解:D
質問 2:
A Linux administrator is adding a new configuration file to a Git repository.
Which of the following describes the correct order of Git commands to accomplish the task successfully?
A. checkout -> push -> add -> pull
B. pull -> push -> add -> checkout
C. pull -> add -> commit -> push
D. pull -> add -> push -> commit
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 3:
A systems administrator created a new directory with specific permissions. Given the following output:
# file: comptia
# owner: root
* group: root
user::rwx
group::r-x
other::---
default:user::rwx
default:group::r-x
default:group:wheel:rwx
default:mask::rwx
default:other::---
Which of the following permissions are enforced on /comptia?
A. Members of the wheel group can read files in /comptia.
B. Newly created files in /comptia will have the sticky bit set.
C. Other users can create files in /comptia.
D. Only root can create files in /comptia.
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
質問 4:
Several users reported that they were unable to write data to the /oracle1 directory. The following output has been provided:

Which of the following commands should the administrator use to diagnose the issue?
A. lsblk /dev/sdb1
B. fdisk -1 /dev/sdb1
C. df -i /oracle1
D. du -sh /oracle1
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 5:
A Linux administrator modified the SSH configuration file. Which of the following commands should be used to apply the configuration changes?
A. systemctl start sshd
B. systemctl mask sshd
C. systemctl stop sshd
D. systemctl reload sshd
正解:D
解説: (Pass4Test メンバーにのみ表示されます)
質問 6:
A systems administrator downloads an application's source files, compiles the application, and installs it per the application's installation instructions. When trying to run the application, the system states:
$ occmd
bash: occmd: command not found...
Running the locate command shows it does exist in the following location:
/opt/occmd/bin/occmd
Which of the following should the administrator do to allow the command to run properly?
(Choose two.)
A. sudo ln -s /opt/occmd/bin/occmd /usr/local/bin/occmd
B. cd /opt/occmd/bin && chmod +x ./occmd && restorecon -rv *
C. mv /opt/occmd ~/ && ln -s ~/occmd/bin/occmd ./occmd
D. echo "#!/bin/bash \n ${which occmd}" > /usr/bin/occmd.sh
E. echo "export PATH=$PATH:/opt/occmd/bin" >> ~/.bashrc
F. sudo mv /opt/occmd/bin/occmd /etc/bin/
正解:A,E
質問 7:
An administrator needs to restrict a file's permission set in the following ways:
- The file needs to be read and write, but it should not be executable
to the file owner.
- The file needs to be read only and executable to the group owner.
- The file needs to be read only to all other users.
Which of the following represents the next command the administrator should execute?
A. chmod 753 file.txt
B. chmod 210 file.txt
C. chmod 654 file.txt
D. chmod 777 file.txt
正解:C
質問 8:
A Linux administrator recently changed the IP addresses of all the web servers from 10.10.50.x to
10.10.100.x. The administrator needs to update the serverlist.txt file to reflect the change.
The file contains the following:
10:WebSvr01:10.10.50.21:Main
11:WebSvr02:10.10.50.22:Acconting
12:WebSvr03:10.10.50.23:Intranet
20:NFS01:10.10.20.21:FileServer
30:SMTP01:10.10.30.31:Email
Which of the following commands will change the IP addresses and update the files in place?
A. sed -i 's|.50|.100|' serverlist.txt
B. sed -g 's|.50|.100|a' serverlist.txt
C. sed -i 's|.50|.100|g' serverlist.txt
D. sed 's|.50|.100|g' serverlist.txt
正解:A
質問 9:
Which of the following are Linux desktop managers? (Choose two.)
A. GUI
B. VNC
C. X11
D. SPICE
E. KDE
F. GNOME
正解:E,F
末*遥 -
XK0-005試験対策のテキストです。
豊富な補足解説が理解を深める