tmpfs.tech · all tracks · Bash & Scripting

Cleanup with trap

Bash & Scripting · pro · live throwaway Linux box · 3 tiered hints

Write /home/player/work.sh that makes a temp file, prints its path, and removes it on EXIT via trap (so it is gone after the script ends).

▶ Start this challenge

Fastest verified solves

How it works

Press start and you get your own real, disposable Linux VM — in the browser terminal or over SSH. Work the task on a live system; tmpfs.tech grades your solution automatically against the actual machine state, then throws the box away. No install, free to try as a guest.

More Bash & Scripting challenges

Write robust shell: loops, parsing, exit codes and small automation.

See all Bash & Scripting challenges →

FAQ

Is it free? Yes — play as a guest, no signup required to start.

Do I need to install anything? No. Everything runs in your browser, or connect over SSH if you prefer your own terminal.

How is it graded? Automatically and deterministically — your work is checked against the real state of the machine you worked on.