Module 1 · Project 01 · Linux Server Automation Toolkit · Lesson 5 of 48

Build it: your Linux automation toolkit

Put everything into one documented repository, practise interview answers, and test yourself.

In this lesson · about 40 minutes

  • Organise the scripts into a clean repository with a setup script and README
  • Build the project in three stages, from manual runs to scheduled alerts
  • Answer the classic Linux interview questions out loud

One repository, not twenty loose files

linux-automation-toolkit/
├── scripts/
│   ├── health-check.sh      # everything at a glance
│   ├── check-cpu.sh         # alert when CPU > limit
│   ├── disk-check.sh        # alert when disk > limit
│   ├── check-services.sh    # alert when a service is down
│   ├── backup.sh            # dated tar.gz, keeps 14 days
│   ├── rotate-logs.sh       # compress old logs, delete old archives
│   ├── cleanup-tmp.sh       # remove old files from /tmp
│   └── create-user.sh       # add a user with a home and a group
├── config/
│   └── toolkit.conf.example # limits, services, paths (no secrets!)
├── logs/                    # git-ignored
├── setup.sh                 # copies files to /opt/toolkit, installs cron jobs
└── README.md

Commit toolkit.conf.example, not your real config, and add config/toolkit.conf and logs/ to .gitignore so a webhook URL never lands on GitHub.

Build it in three stages

  1. Beginner: every script runs by hand and prints a clear result.
  2. Intermediate: scripts take arguments, read toolkit.conf, use set -euo pipefail and exit with honest codes.
  3. Advanced: setup.sh installs the cron jobs; checks log every run and alert once on threshold crossings (CPU, disk, a stopped service), with a "recovered" message.

Break it on purpose

Fill the disk with a big file (fallocate -l 5G /tmp/big on a test VM), stop nginx, or run yes > /dev/null to burn a CPU core. Did the right alert arrive, once? Write down what happened. That's your "Failure" section.

Your README should say, for each script, what problem it solves, how to run it, and an example of its output. Add a small diagram of the alert flow: cron → check script → log → webhook.

Guided dialogue

Mock interview: Linux and automation

0 of 5 answered

I

Five classic questions. Pick the answer you would give; the interviewer reacts the way a real one might.

I

A server is slow and the CPU looks high. How do you troubleshoot it?

Flashcards

Project 01 flashcards

0 of 10 known

Say the answer out loud, flip the card, then be honest: cards you miss come back at the end.

10 left in the deck

Practice exam

Project 01 practice test

Ten questions, 12 minutes. Every answer is explained when you submit.

  • 10 questions · 12 minutes
  • No feedback until you submit. Flag questions to come back to them.
  • Aim for 85% or better before you move on. The real exam's 750 out of 900 is roughly 80–83%.

Write the 'Problem' and 'Failure' sections of your toolkit's README.

Consider these questions and write down your thoughts. What you write stays on this device.

Written by Noviq Academy in its own words. The labs are simulations: no real servers are touched. When you build the projects yourself, use a practice virtual machine or a free-tier cloud account you control, watch your cloud spending, and never run cleanup or delete commands on a machine you care about. Tool names belong to their owners; versions and output are shown for learning and may differ slightly from yours. Read-aloud and the whiteboard voice use your device's built-in voices.