exec - replace the shell with a command
exec [COMMAND]
Gotchas
- No new process: the command takes over the shell's PID. That is why
execis used as the last line of a wrapper script under systemd - the service manager keeps tracking the right PID.
Taught in
Try exec in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.