A Linux administrator created the directory /project/access2all. By creating this directory, the administrator is trying to avoid the deletion or modification of files from non-owners. Which of the following will accomplish this goal?
A.
chmod +t /project/access2all
B.
chmod +rws /project/access2all
C.
chmod 2770 /project/access2all
D.
chmod ugo+rwx /project/access2all
chmod +t /project/access2all
A Linux administrator needs to expand a volume group using a new disk. Which of the following options presents the correct sequence of commands to accomplish the task?
A.
partprobe
vgcreate
lvextend
B.
lvcreate
fdisk
partprobe
C.
fdisk
partprobe
mkfs
D.
fdisk
pvcreate
vgextend
fdisk
pvcreate
vgextend
An administrator needs to make some changes in the IaC declaration templates. Which of the following commands would maintain version control?
A.
git clone https://github.com/comptia/linux+-.git
git push origin
B.
git clone https://qithub.com/comptia/linux+-.git
git fetch New-Branch
C.
git clone https://github.com/comptia/linux+-.git
git status
D.
git clone https://github.com/comptia/linuxt+-.git
git checkout -b <new-branch>
git clone https://github.com/comptia/linuxt+-.git
git checkout -b <new-branch>
A Linux engineer is setting the sticky bit on a directory called devops with 755 file permission. Which of the following commands will accomplish this task?
A.
chown -s 755 devops
B.
chown 1755 devops
C.
chmod -s 755 devops
D.
chmod 1755 devops
chmod 1755 devops
A Linux administrator needs to determine whether a hostname is in the DNS. Which of the following would supply the information that is needed?
A.
nslookup
B.
rsyn
C.
netstat
D.
host
nslookup
A developer has been unable to remove a particular data folder that a team no longer uses. The developer escalated the issue to the systems administrator. The following output was received:
Which of the following commands can be used to resolve this issue?
A.
chgrp -R 755 data/
B.
chmod -R 777 data/
C.
chattr -R -i data/
D.
chown -R data/
chattr -R -i data/
A Linux administrator is troubleshooting a memory-related issue. Based on the output of the commands:
Which of the following commands would address the issue?
A.
top -p 8321
B.
kill -9 8321
C.
renice -10 8321
D.
free 8321
renice -10 8321
A Linux administrator is reviewing changes to a configuration file that includes the following section:
The Linux administrator is trying to select the appropriate syntax formatter to correct any issues with the configuration file. Which of the following should the syntax formatter support to meet this goal?
A.
Markdown
B.
XML
C.
YAML
D.
JSON
YAML
A cloud engineer needs to launch a container named web-01 in background mode. Which of the following commands will accomplish this task''
A.
docker builder -f —name web-01 httpd
B.
docker load --name web-01 httpd
C.
docker ps -a --name web-01 httpd
D.
docker run -d --name web-01 httpd
docker run -d --name web-01 httpd
A Linux engineer needs to create a custom script, cleanup.sh, to run at boot as part of the system services. Which of the following processes would accomplish this task?
A.
Create a unit file in the /etc/default/ directory.
systemctl enable cleanup
systemctl is-enabled cleanup
B.
Create a unit file in the /etc/ske1/ directory.
systemctl enable cleanup
systemctl is-enabled cleanup
C.
Create a unit file in the /etc/systemd/system/ directory.
systemctl enable cleanup
systemctl is-enabled cleanup
D.
Create a unit file in the /etc/sysctl.d/ directory.
systemctl enable cleanup
systemctl is-enabled cleanup
Create a unit file in the /etc/systemd/system/ directory.
systemctl enable cleanup
systemctl is-enabled cleanup
A Linux system fails to start and delivers the following error message:
Which of the following commands can be used to address this issue?
A.
fsck.ext4 /dev/sda1
B.
partprobe /dev/sda1
C.
fdisk /dev/sda1
D.
mkfs.ext4 /dev/sda1
fsck.ext4 /dev/sda1
A Linux administrator needs to redirect all HTTP traffic temporarily to the new proxy server 192.0.2.25 on port 3128. Which of the following commands will accomplish this task?
A.
iptables -t nat -D PREROUTING -p tcp --sport 80 -j DNAT - -to-destination 192.0.2.25:3128
B.
iptables -t nat -A PREROUTING -p top --dport 81 -j DNAT –-to-destination
192.0.2.25:3129
C.
iptables -t nat -I PREROUTING -p top --sport 80 -j DNAT –-to-destination
192.0.2.25:3129
D.
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT –-to-destination
192.0.2.25:3128
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT –-to-destination
192.0.2.25:3128
Page 3 out of 31 Pages |
Previous |