<< Prev Question Next Question >>

Question 31/171

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.

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (171q)
Question 1: A Linux administrator is implementing a CI/CD process for th...
Question 2: A junior administrator updated the PostgreSQL service unit f...
Question 3: Which of the following data structures is written in JSON?...
Question 4: A systems administrator receives reports that several virtua...
Question 5: Which of the following options describes the purpose of YAML...
Question 6: A Linux administrator needs to create a symlink for /usr/loc...
Question 7: A junior Linux administrator is tasked with installing an ap...
Question 8: The administrator comptia is not able to perform privileged ...
Question 9: Users report that connections to a MariaDB service are being...
Question 10: An administrator deployed a Linux server that is running a w...
Question 11: A Linux administrator has installed a web server, a database...
Question 12: After trying to install an RPM package unsuccessfully, a sys...
Question 13: An engineer needs to insert a character at the end of the cu...
Question 14: A Linux administrator is adding a new configuration file to ...
Question 15: A Linux engineer needs to block an incoming connection from ...
Question 16: A systems administrator wants to be sure the sudo rules just...
Question 17: A Linux systems administrator is troubleshooting an I/O late...
Question 18: A Linux administrator provisioned a new web server with cust...
Question 19: A user created the following script file: # ! /bin/bash # FI...
Question 20: A Linux administrator needs to expose port 9000 for a contai...
Question 21: A systems administrator wants to check for running container...
Question 22: Joe, a user, is unable to log in to the Linux system Given t...
Question 23: A Linux administrator is troubleshooting SSH connection issu...
Question 24: A technician just fixed a few issues in some code and is rea...
Question 25: An administrator installed an application from source into /...
Question 26: A DevOps engineer needs to download a Git repository from ht...
Question 27: A Linux engineer wants to give read-write-execute permission...
Question 28: A Linux systems administrator receives reports from various ...
Question 29: An administrator would like to list all current containers, ...
Question 30: A Linux engineer has been notified about the possible deleti...
Question 31: As a Systems Administrator, to reduce disk space, you were t...
Question 32: A systems administrator is gathering information about a fil...
Question 33: A Linux administrator wants to prevent the httpd web service...
Question 34: overwrite any existing files. Which of the following command...
Question 35: A Linux administrator is trying to start the database servic...
Question 36: After connecting to a remote host via SSH, an administrator ...
Question 37: A new drive was recently added to a Linux system. Using the ...
Question 38: A Linux administrator is creating a new sudo profile for the...
Question 39: An administrator needs to make an application change via a s...
Question 40: A systems administrator wants to permit access temporarily t...
Question 41: A Linux administrator is troubleshooting the root cause of a...
Question 42: Developers have requested implementation of a persistent, st...
Question 43: Users are unable to create new files on the company's FTP se...
Question 44: While troubleshooting server issues, a Linux systems adminis...
Question 45: A systems administrator is configuring a Linux system so the...
Question 46: A Linux administrator deployed a large-scale application ser...
Question 47: A systems administrator is working on a security report from...
Question 48: Joe, a user, is unable to log in to the Linux system. Given ...
Question 49: A Linux engineer finds multiple failed login entries in the ...
Question 50: A Linux administrator logs in to a system and identifies tha...
Question 51: Linux system users report that over the past few months, a s...
Question 52: A systems administrator was tasked with assigning the tempor...
Question 53: A Linux administrator modified the SSH configuration file. W...
Question 54: Which of the following actions are considered good security ...
Question 55: A Linux administrator reviews a set of log output files and ...
Question 56: An administrator needs to make some changes in the IaC decla...
Question 57: A junior systems administrator has just generated public and...
Question 58: Rugged appliances are small appliances with ruggedized hardw...
Question 59: A user (userA) has reported issues while logging in to the s...
Question 60: A systems administrator wants to test the route between IP a...
Question 61: A systems administrator receives the following errors via em...
Question 62: A Linux administrator is implementing a stateful firewall on...
Question 63: Users are reporting that writes on a system configured with ...
Question 64: A systems administrator is deploying three identical, cloud-...
Question 65: A Linux administrator copied a Git repository locally, creat...
Question 66: A cloud engineer needs to launch a container named web-01 in...
Question 67: A junior administrator is trying to set up a passwordless SS...
Question 68: Using AD Query, the security gateway connections to the Acti...
Question 69: An administrator changed the default port of an SSH server t...
Question 70: A systems administrator has been unable to terminate a proce...
Question 71: Which of the following is a benefit of a service mesh?...
Question 72: Users in the human resources department are trying to access...
Question 73: A Linux engineer needs to download a ZIP file and wants to s...
Question 74: A systems administrator configured firewall rules using fire...
Question 75: A junior systems administrator recently installed an HBA car...
Question 76: Users have been unable to save documents to /home/tmp/temp a...
Question 77: Which of the following tools is BEST suited to orchestrate a...
Question 78: The application team has reported latency issues that are ca...
Question 79: A systems administrator intends to use a UI-JID to mount a n...
Question 80: A Linux administrator is configuring a log collector agent t...
Question 81: A Linux administrator needs to check extended permissions ap...
Question 82: A Linux engineer receives reports that files created within ...
Question 83: Some servers in an organization have been compromised. Users...
Question 84: Joe, a user, is unable to log in to the system. The Linux ad...
Question 85: A systems administrator is tasked with setting up key-based ...
Question 86: An administrator is trying to diagnose a performance issue a...
Question 87: A cloud engineer is asked to copy the file deployment.yaml f...
Question 88: A systems administrator creates a public key for authenticat...
Question 89: A new file was added to a main Git repository. An administra...
Question 90: A systems technician is working on deploying several microse...
Question 91: A Linux administrator would like to use systemd to schedule ...
Question 92: A Linux administrator needs to create a new user named user0...
Question 93: A systems administrator requires that all files that are cre...
Question 94: A Linux administrator is enabling root log-in over SSH on a ...
Question 95: A Linux administrator is troubleshooting an issue in which a...
Question 96: A Linux administrator is installing a web server and needs t...
Question 97: A systems administrator is tasked with preventing logins fro...
Question 98: A Linux administrator created a virtual clone of a physical ...
Question 99: An administrator attempts to connect to a remote server by r...
Question 100: A Linux administrator needs to determine if prerequisites ar...
Question 101: A systems administrator is creating new user accounts on sev...
Question 102: The development team created a new branch with code changes ...
Question 103: A Linux administrator needs to correct the permissions of a ...
Question 104: When trying to log in remotely to a server, a user receives ...
Question 105: A Linux administrator found many containers in an exited sta...
Question 106: A Linux administrator is alerted to a storage capacity issue...
Question 107: A Linux administrator is tasked with creating resources usin...
Question 108: A security team discovers that a web server has been running...
Question 109: A Linux administrator needs to forward port 8000 on a remote...
Question 110: A systems administrator needs to verify whether the built co...
Question 111: A hardened physical Linux system allows regular, unprivilege...
Question 112: A systems administrator notices the process list on a missio...
Question 113: In which of the following filesystems are system logs common...
Question 114: Users have been unable to reach www.comptia.org from a Linux...
Question 115: Several users reported that they were unable to write data t...
Question 116: Which of the following specifications is used to perform dis...
Question 117: Which of the following will prevent non-root SSH access to a...
Question 118: A developer is trying to install an application remotely tha...
Question 119: A systems administrator is enabling LUKS on a USB storage de...
Question 120: A systems administrator is tasked with creating an Ansible p...
Question 121: A systems engineer deploys a new application server, but the...
Question 122: An administrator thinks that a package was installed using a...
Question 123: A Linux systems administrator is updating code. After comple...
Question 124: After connecting to a remote host via SSH, an administrator ...
Question 125: SIMULATION A senior administrator has placed a private key f...
Question 126: A systems administrator needs to clone the partition /dev/sd...
Question 127: A Linux administrator needs to analyze a failing application...
Question 128: A Linux systems administrator is working to obtain the insta...
Question 129: A Linux administrator is configuring a two-node cluster and ...
Question 130: Following the migration from a disaster recovery site, a sys...
Question 131: A systems administrator identifies multiple processes in a z...
Question 132: A non-privileged user is attempting to use commands that req...
Question 133: A user generated a pair of private-public keys on a workstat...
Question 134: A Linux engineer needs to create a custom script, cleanup.sh...
Question 135: A systems administrator received a request to change a user'...
Question 136: A Linux systems administrator receives a notification that o...
Question 137: A Linux administrator has logged in to a server for the firs...
Question 138: A Linux user is trying to execute commands with sudo but is ...
Question 139: A systems administrator created a web server for the company...
Question 140: A systems administrator is investigating an issue in which o...
Question 141: A Linux administrator wants to set the SUID of a file named ...
Question 142: A systems administrator is gathering information about a fil...
Question 143: While troubleshooting server issues, a Linux systems adminis...
Question 144: A junior developer is unable to access an application server...
Question 145: A Linux administrator is configuring network traffic forward...
Question 146: A systems administrator is cloning a system partition /dev/s...
Question 147: A user is asking the systems administrator for assistance wi...
Question 148: As part of the requirements for installing a new application...
Question 149: An administrator needs to increase the system priority of a ...
Question 150: An administrator accidentally installed the httpd RPM packag...
Question 151: A systems administrator needs to remove a disk from a Linux ...
Question 152: Users are reporting that a Linux server is responding slowly...
Question 153: An administrator attempts to rename a file on a server but r...
Question 154: A systems administrator created a user cron to run a schedul...
Question 155: In order to copy data from another VLAN, a systems administr...
Question 156: A systems administrator installed a new software program on ...
Question 157: A newly created container has been unable to start properly,...
Question 158: A network administrator issues the dig www.foo.com command a...
Question 159: A cloud engineer wants to delete all unused networks that ar...
Question 160: A Linux systems administrator is trying to execute a particu...
Question 161: A Linux administrator created the directory /project/access2...
Question 162: A systems administrator is troubleshooting a connectivity is...
Question 163: A Linux systems administrator is setting up a new web server...
Question 164: Due to low disk space, a Linux administrator finding and rem...
Question 165: Which of the following technologies provides load balancing,...
Question 166: Users are reporting that a production application has slow p...
Question 167: A Linux administrator needs to list the packages that are cu...
Question 168: Due to performance issues on a server, a Linux administrator...
Question 169: A Linux systems administrator needs to persistently enable I...
Question 170: A Linux administrator is trying to remove the ACL from the f...
Question 171: An administrator has source code and needs to rebuild a kern...