Click the virtual machine below to start practicing
>_ Tekhnikum | Lab
Setting up virtual machine…
Preparing lab files…
Starting terminal services…
This lab machine has stopped
Your progress through the guide is saved. Start a fresh machine to keep practicing.
Quick recall
From the last lab. Answer in your head, then open to check.
1. Why does a workspace script build everything with -d?So nothing flashes up while it builds; it attaches once, at the end.2. What goes wrong if you run a simple workspace script twice?new-session fails (duplicate session) but new-window adds extra windows to the existing one.
Introduction
Write a real workspace script, the kind you'd keep for every project.
One-Command Mornings
~/project/logs/app.log is a live log, written to every second.
Tasks
Write ~/project/morning.sh. It builds a session called morning with:
a window code, split into three panes
a window logs that follows logs/app.log with tail -f
and finishes attached to morning, looking at code.
Run it with bash morning.sh, detach, and run it again.
Requirements
Running it a second time must not add windows or fail: it just attaches.
morning ends up with exactly two windows, code and logs.