Subshell

Noun · Development

Definitions

  1. A child shell process spawned by the current shell to execute commands in an isolated environment, where variable changes and directory changes do not affect the parent shell.

    In plain English: A temporary copy of your terminal session that runs commands without affecting your original session.

    Example: "Wrapping the cd in a subshell — (cd /tmp && make) — means your original directory is unchanged after."

Related Terms