Linux & Shell · Concept
Redirection
Bash redirection controls command file descriptors. It can connect input and output to files or pipes, copy descriptors, and close them. The exec builtin applies descriptor changes to the current shell or replaces the shell with a command.
Last updated
Syntax
exec [ command [ argument ... ] ]
exec [redirection ...]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
exec||&pipefailfile descriptorstandard inputstandard outputstandard error