A Linux engineer has been notified about the possible deletion of logs from the file
/opt/app/logs. The engineer needs to ensure the log file can only be written into without removing previous entries.
Which of the following commands would be BEST to use to accomplish this task?
A.
chattr +a /opt/app/logs
B.
chattr +d /opt/app/logs
C.
chattr +i /opt/app/logs
D.
chattr +c /opt/app/logs
chattr +a /opt/app/logs
A Linux administrator is alerted to a storage capacity issue on a server without a specific mount point or directory. Which of the following commands would be MOST helpful for troubleshooting? (Choose two.)
A.
parted
B.
df
C.
mount
D.
du
E.
fdisk
F.
dd
G.
ls
df
du
A Linux administrator needs to resolve a service that has failed to start. The administrator runs the following command:
Which of the following is MOST likely the issue?
A.
The service does not have permissions to read write the startupfile.
B.
The service startupfile size cannot be 81k.
C.
The service startupfile cannot be owned by root.
D.
The service startupfile should not be owned by the root group.
The service does not have permissions to read write the startupfile.
As a Systems Administrator, to reduce disk space, you were tasked to create a shell script that does the following:
Add relevant content to /tmp/script.sh, so that it finds and compresses rotated files in /var/log without recursion.
INSTRUCTIONS
Fill the blanks to build a script that performs the actual compression of rotated log files.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
To harden one of the servers, an administrator needs to remove the possibility of remote administrative login via the SSH service. Which of the following should the administrator do?
A.
Add the line DenyUsers root to the /etc/hosts.deny file.
B.
Set PermitRootLogin to no in the /etc/ssh/sshd_config file.
C.
Add the line account required pam_nologin. so to the /etc/pam.d/sshd file.
D.
Set PubKeyAuthentication to no in the /etc/ssh/ssh_config file.
Set PermitRootLogin to no in the /etc/ssh/sshd_config file.
A systems administrator is tasked with creating an Ansible playbook to automate the installation of patches on several Linux systems. In which of the following languages should the playbook be written?
A.
SQL
B.
YAML
C.
HTML
D.
JSON
YAML
A Linux systems administrator receives a notification that one of the server’s filesystems is full. Which of the following commands would help the administrator to identify this filesystem?
A.
lsblk
B.
fdisk
C.
df -h
D.
du -ah
df -h
A systems administrator frequently connects to a remote host via SSH and a non-standard port. The systems administrator would like to avoid passing the port parameter on the command line every time. Which of the following files can be used to set a different port value for that host?
A.
/etc/ssh/sshd_config
B.
/etc/ssh/moduli
C.
~/.ssh/config
D.
~/.ssh/authorized_keys
~/.ssh/config
After listing the properties of a system account, a systems administrator wants to remove the expiration date of a user account. Which of the following commands will accomplish this task?
A.
chgrp system accountname
B.
passwd –s accountname
C.
chmod -G system account name
D.
chage -E -1 accountname
chage -E -1 accountname
A systems administrator needs to verify whether the built container has the app.go file in its root directory. Which of the following can the administrator use to verify the root directory has this file?
A.
docker image inspect
B.
docker container inspect
C.
docker exec <container_name> ls
D.
docker ps <container_name>
docker container inspect
A Linux administrator reviews a set of log output files and needs to identify files that contain any occurrence of the word denied. All log files containing entries in uppercase or lowercase letters should be included in the list. Which of the following commands should the administrator use to accomplish this task?
A.
find . -type f -print | xrags grep -ln denied
B.
find . -type f -print | xrags grep -nv denied
C.
find . -type f -print | xrags grep -wL denied
D.
find . -type f -print | xrags grep -li denied
find . -type f -print | xrags grep -ln denied
Joe, a user, is unable to log in to the Linux system Given the following output:
Which of the following command would resolve the issue?
A.
usermod -s /bin/bash joe
B.
pam_tally2 -u joe -r
C.
passwd -u joe
D.
chage -E 90 joe
usermod -s /bin/bash joe
Page 14 out of 31 Pages |
Previous |