Back to lessons

Hosting Operations

Show Release Directory Ages

You need to confirm recent releases exist and identify their order.

Command

find releases/ -mindepth 1 -maxdepth 1 -type d -printf '%T@ %TY-%Tm-%Td %TH:%TM %p\n' | sort -nr | head -10 | cut -d' ' -f2-

What changed

Nothing changes. The command lists release directories by modification time.

Danger

safe

When to use it

Use during deploy checks, rollback planning, or release cleanup reviews.

When not to use it

Do not use it if directory modification time is not meaningful in your deploy process.

Undo or recovery

No undo needed because this command is read-only.

Expected output

The most recently modified release directories.

demo script

Disposable terminal steps

  1. find releases/ -mindepth 1 -maxdepth 1 -type d -print
  2. find releases/ -mindepth 1 -maxdepth 1 -type d -printf '%T@ %TY-%Tm-%Td %TH:%TM %p\n' | sort -nr | head -10 | cut -d' ' -f2-

simulated output

What it looks like

disposable vessel
::fixture-ready::
$ find releases/ -mindepth 1 -maxdepth 1 -type d -print
releases/2026-06-25-1215
releases/2026-06-25-1200
::exit-code::0
$ find releases/ -mindepth 1 -maxdepth 1 -type d -printf '%T@ %TY-%Tm-%Td %TH:%TM %p\n' | sort -nr | head -10 | cut -d' ' -f2-
2026-06-25 13:19 releases/2026-06-25-1215
2026-06-25 13:19 releases/2026-06-25-1200
::exit-code::0

YouTube Short

Newest releases first.

When releases are directories, sort them by modification time to see the newest deploy candidates.

LinkedIn hook

See your newest release directories without opening a dashboard.

Question: How do you confirm the release directory you expect is actually present?

experiments

A/B tests to run

Metric: engagement_rate

A: Newest releases first.

B: Confirm deploy folders fast.