Run Directory Scripts With run-parts

Execute or list the executable scripts in a folder, as cron does.

LinuxsystemautomationcliLow risk
Run run-parts --test /etc/cron.daily to list which scripts would run.

01Command

Command
$ run-parts --test /etc/cron.daily

02What it does

run-parts runs each executable file in a directory in lexical order, which is exactly how /etc/cron.daily and similar directories work. Using --test previews the list and makes scheduled maintenance debuggable instead of a black box.

03Risk

RiskLow risk
Requirementssudo apt install debianutils
!Warning: Only files whose names pass its naming rules run, and they execute with the invoking user's privileges.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-10-13 · Category: System & Settings

06Related solutions