May 2017
Beginner
552 pages
28h 47m
English
Subshells are separate processes. A subshell is defined using the ( ) operators:
$> pwd
/
$> (cd /bin; ls)
awk bash cat...
$> pwd
/
When commands are executed in a subshell, none of the changes occur in the current shell; changes are restricted to the subshell. For example, when the current directory in a subshell is changed using the cd command, the directory change is not reflected in the main shell environment.