▸case-17 I need a Bash script that ensures a specified system service is running, restarting it if active or starting it if inactive. Should I just call systemctl restart unconditionally, or how should systemctl test active status before deciding to start or restart? | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-05 I need to write a Bash script on a Linux server to create a compressed archive of a source directory into a backup folder. I am considering using zip or tar without compression flags. What standard tar flags and timestamp format should be used to produce a gzipped archive with a date-time stamp? | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-12 I am writing a script to extract failure entries from Linux log files like /var/log/syslog into a daily summary file. Should I match only the exact word 'ERROR' uppercase, or what search pattern and case-sensitivity settings catch general system failures? | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-18 I need a Bash script to clean up old temporary files in a directory that exceed a target age in days. I am tempted to use rm -rf with date wildcard matching. How should the find command be structured to safely select and delete regular files older than N days? | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-22 I need to write a systemd service unit configuration file located at /etc/systemd/system/mydaemon.service to manage a Python background worker process. The daemon must start after network initialization, run under the 'www-data' user, and automatically restart on failure. Can you write the unit file definition? | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-08 I need a Bash script to automate Linux user account creation. I'm tempted to run useradd directly without pre-checking existence or checking /etc/passwd manually with grep. How should the script check user existence before calling useradd with standard shell defaults? | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-01 I need a bash script to monitor local disk space usage across my server partitions and alert me whenever a partition crosses a critical utilization mark. Could you write a production-ready script for this that checks disk usage and prints an alert? | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-11 I need a Bash script to encrypt and decrypt sensitive files using AES-256 with OpenSSL. Should I use plain aes-256-cbc without key derivation flags, or what specific key derivation and salt flags are required for modern OpenSSL file encryption? | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-03 I want a shell script that handles automated file backup rotation. It should maintain a set maximum number of backup files in a target folder by identifying and removing the oldest backups whenever the directory exceeds that limit. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-06 I need a shell script to perform a MySQL database dump and compress the output. Someone suggested piping the output directly into tar or leaving the raw SQL file uncompressed. What is the standard Linux utility sequence for creating and compressing this database dump? | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-02 Can you write a Linux shell script to parse Apache web server access logs? The script should summarize traffic statistics by outputting the top IP addresses sending requests, the most frequently requested endpoints, and a breakdown of HTTP status codes returned by the server. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-20 I need a Bash script that executes a local shell script on a remote Linux server via SSH without transferring the script file to the remote disk first. How can SSH pass standard input to remote bash execution? | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-14 I am building a script to verify HTTP availability for a list of URLs. I'm considering downloading full page bodies with wget or curl. What curl flags should be passed to check HTTP response status quickly without downloading response bodies? | pass→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-09 I want to write a Bash script that iterates through standard Bash users in /etc/passwd and generates a password expiration report. I'm thinking of parsing /etc/shadow directly with cut. What standard Linux command should be used to query individual user account aging information? | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-19 I am writing a script to iterate over local git repositories and pull the latest changes. I am tempted to assume the branch is always 'main' and run git pull main. How can the script dynamically determine the current active branch name for git pull? | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-21 I need a script to synchronize local files to a remote backup destination over SSH. I am tempted to use scp -r or plain tar over ssh. What rsync flags provide archived transfer with verbosity and compression? | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-15 I need a Bash script to install a list of required APT packages on Debian/Ubuntu systems. Should I blindly run apt-get install on every package regardless of whether it exists, or how can dpkg verify package status prior to installation? | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-04 I am writing a Bash script for Linux host health checks that collects uptime, CPU load average, memory usage, disk utilization, and top process information. I was considering writing each check to separate output files or using temporary buffers. How should the script combine these outputs into a single text report? | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-07 I am building a host monitoring script in Bash to check CPU usage using top. Some developers parse top in interactive mode or read /proc/stat directly. How should top be called in non-interactive batch mode to accurately extract the overall CPU percentage? | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-10 I need a shell script that generates a random password of configurable length (defaulting to 16 characters). Some developers use $RANDOM in a loop or /dev/urandom with tr. How can OpenSSL generate secure random bytes that are stripped to alphanumeric and special characters? | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-13 I need a Bash script that checks network connectivity against a list of IP addresses or hostnames. I am tempted to run ping without count limits or timeout flags, which causes the script to hang if a host is unreachable. What ping options prevent hanging during automated checks? | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-16 I want a Bash script that programmatically adds a scheduled job to a user's crontab without overwriting existing cron entries. I am tempted to echo directly into /etc/crontab or overwrite crontab with a temp file. How should crontab listing and piping be combined to append a new job safely? | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-23 I need an Ansible playbook YAML file named site.yml that targets all 'webservers' hosts, uses escalation privileges, and ensures that the nginx service is installed and started using the apt and systemd modules. Can you write the playbook? | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-24 I need to write a Dockerfile to containerize a Node.js web application. It should start from node:18-alpine, set the working directory to /app, copy package.json, run npm install, copy the application code, expose port 3000, and start the application with npm start. Can you write this Dockerfile? | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |