Sunday, December 21, 2014

Shell scripting : Shell Builtin commands

Shell builtin commands do not fork(spawn) a new process and these commands are executed in the current shell itself.

Good examples are the commands like cd, echo, variable assignment like a=2.
These commands when executed do not generate a new process, and are executed directly in the current shell itself. Hence, these commands execute much faster as there is no overhead of spawning new process. 

No comments:

Post a Comment