trap

Execute a command upon an event. More information: <https://manned.org/trap.1posix>.

Debian Debian
RUN apt-get update && \ apt-get install -y execline
Ubuntu
RUN apt-get update && \ apt-get install -y execline
Alpine
RUN apk add execline
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y execline
click the source code to copy install trap on any operating system with command-not-found.com