Set 1

1. Text Processing – Generate Sorted Unique Activity Log

Scenario Your engineering team needs a cleaned list of unique user activity entries from raw logs to feed into analytics.

Instructions:

  • Navigate to ~/kactii29

  • Create a folder named activity_logs

  • Assume raw_logs.log exists with repeated entries

  • Generate a sorted, de-duplicated file

  • Save output to clean_logs.txt

Commands Expected: sort, uniq, file redirection


2. Environment Variables – Configure Deployment Variables

Scenario DevOps wants environment configurations set for a staging environment used in a container.

Instructions:

  • Navigate to ~/kactii29

  • Create a folder named env_setup

  • Set variable APP_ENV=staging

  • Make it permanent by sourcing the appropriate file

  • Verify the command location for python3

Commands Expected: export, source, which


3. Disk Usage – Investigate Space on Project Directory

Scenario Storage team reports unusually high usage in your project area on Ubuntu server.

Instructions:

  • Navigate to ~/kactii29

  • Create a folder named disk_investigation

  • Determine directory sizes under your home

  • Identify largest subdirectories up to one level deep

  • Save report to usage_report.txt

Commands Expected: du -h --max-depth=1


4. File Identification – Confirm Binary Types

Scenario Security analysts want to ensure custom binaries in your build folder are the correct file types.

Instructions:

  • Navigate to ~/kactii29

  • Create binary_check folder

  • Assume bin1 and bin2 are present

  • Determine file types

  • Report results in types.log

Commands Expected: file


5. Scheduled Backup – Automate Backups at Night

Scenario Your infrastructure team needs a backup script to run nightly via at scheduler.

Instructions:

  • Navigate to ~/kactii29

  • Create nightly_backup

  • Create stub backup script backup.sh

  • Schedule it to run at 23:00

  • Confirm scheduled jobs

Commands Expected: at, scheduling syntax, job list (atq)


6. Service Status – Validate Web Service Availability

Scenario QA needs verification that the nginx service is running after deploy.

Instructions:

  • Navigate to ~/kactii29

  • Create folder service_checks

  • Check nginx service status

  • Start service if not running

  • Enable it to start on boot

Commands Expected: systemctl status, systemctl start, systemctl enable


7. Networking – Check Active Sessions and Ports

Scenario Network security team needs a snapshot of current connections and logged-in users.

Instructions:

  • Navigate to ~/kactii29

  • Create network_snapshot folder

  • List listening TCP/UDP sockets

  • Capture list of logged-in users

  • Save to network_report.txt

Commands Expected: ss -tuln, who


8. Uptime Monitoring – Report System Stability

Scenario Operations wants periodic reports on uptime for server health dashboards.

Instructions:

  • Navigate to ~/kactii29

  • Create uptime_reports

  • Capture current uptime

  • Include timestamp

  • Append to uptime_log.txt

Commands Expected: uptime, date, output redirection


9. Text Streams – Extract First Column From CSV

Scenario Data team provided a CSV of user metrics; you need the first column for analysis.

Instructions:

  • Navigate to ~/kactii29

  • Create csv_extract

  • Assume metrics.csv exists

  • Extract first column (comma-delimited)

  • Save to first_column.txt

Commands Expected: cut -d',' -f1


10. System Maintenance – Immediate Reboot After Updates

Scenario After applying critical updates, infrastructure requires an immediate reboot.

Instructions:

  • Navigate to ~/kactii29

  • Create folder maintenance

  • Document any open sessions before reboot

  • Reboot the system

Commands Expected: who, sudo reboot


Last updated