01. Based on the given command: find /home/user1 -type f -name "*.txt" -size +100M
Which of the following will the command accomplish?
a) It finds all the files ending with .txt with a size less than 100MB in /home/user1 directory.
b) It finds all the files ending with .txt with a size of 100MB in /home/user1 directory.
c) It finds all the directories with .txt files with a size of 100MB in /home folder.
d) It finds all the files ending with .txt with a size of over 100MB in /home/user1 directory.
02. A systems administrator needs to check if the service systemd-resolved)service is running without any errors. Which of the following commands will show this information?
a) systemctl status systemd-resolved)service
b) systemctl enable systemd-resolved)service
c) systemctl mask systemd-resolved)service
d) systemctl show systemd-resolved)service
03. A non-privileged user is attempting to use commands that require elevated account permissions, but the commands are not successful. Which of the following most likely needs to be updated?
a) / etc/passwd
b) / etc/shadow
c) /etc/sudoers
d) /etc/bashrc
04. Which of the following can be used as a secure way to access a remote terminal?
a) TFTP
b) SSH
c) SCP
d) SFTP
05. A Linux administrator is troubleshooting an SSHD issue on a server. Users are receiving error messages stating the connection is refused) Which of the following commands should be used to verify whether the service is listening?
a) nslookup
b) route
c) netstat
d) ifconfig
06. Users are unable to create new files on the company's FTP server, and an administrator is troubleshooting the issue. The administrator runs the following commands:
# df -h /ftpusers/
Filesystem - /dev/sda4
Size - 150G
Used - 40G
Avail - 109G
Use% - 26%
Mounted on - /ftpusers
# df -i /ftpusers/
Filesystem - /dev/sda4
Inodes - 34567
Iused - 34567
Ifree - 0
Iuse% - 100%
Mounted on - /ftpusers
Which of the following is the cause of the issue based on the output above?
a) The users do not have the correct permissions to create files on the FTP server.
b) The ftpusers filesystem does not have enough space.
c) The inodes is at full capacity and would affect file creation for users.
d) journalctl --vacuum-time=2
07. An application fails to start after a server is restarted) Which of the following commands would allow this service to start automatically?
a) systemctl reload app.service
b) systemctl restart app.service
c) systemctl start app.service
d) systemctl enable app.service
08. A user wants to back up some work files from the /opt/work directory to a home directory. Which of the following commands should the user run?
a) mv /opt/work ~
b) cp -R /opt/work ~
c) rm -Rf /opt/work
d) touch ~/work
09. A systems administrator is trying to give read/write access to a file, config.conf, to User1. Based on the output shown:
$ getfacl config.conf # file: config.conf # owner: cloud_user # group: cloud_user user::rw- user:User2:r-- group::rw- mask::rw- other::r--
a) setfacl -b u:User1:r
b) setfacl -x u:User1:User2:rw
c) setfacl -m u:User1:rw
d) setfacl -m g:User1:rw
10. A systems administrator is running out of space for journald systemd binary logs in the default location and needs to address the space issue. One of the requirements is to retain the logs for at least two weeks. Which of the following commands should the administrator issue?
a) journalctl --vacuum-time=14d
b) journalctl --vacuum-size=20M
c) journalctl --vacuum-size=200M
d) journalctl --vacuum-time=2