Answer by jlliagre for What does an "exec" command do?
exec is a command with two very distinct behaviors, depending on whether at least one argument is used with it, or no argument is used at all. If at least one argument is passed, the first one is taken...
View ArticleAnswer by fkraiem for What does an "exec" command do?
man bash says: exec [-cl] [-a name] [command [arguments]] If command is specified, it replaces the shell. No new process is created. The arguments become the arguments to command. If the -l option is...
View ArticleAnswer by muru for What does an "exec" command do?
In bash, if you do help exec: $ help exec exec: exec [-cl] [-a name] [command [arguments ...]] [redirection ...] Replace the shell with the given command. Execute COMMAND, replacing this shell with the...
View ArticleAnswer by g_p for What does an "exec" command do?
To understand exec you need to first understand fork. I am trying to keep it short. When you come to a fork in the road you generally have two options. Linux programs reach this fork in the road when...
View ArticleWhat does an "exec" command do?
I don't understand the bash command exec. I have seen it used inside scripts to redirect all output to a file (as seen in this). But I don't understand how it works or what it does in general. I have...
View Article
More Pages to Explore .....