Search exams, classes and guides
Search...
English
Sign in
Sign in
Home
Practice
Discover
Performance
More
CompTIA Linux+ XK0-006
Automation, Orchestration, and Scripting
Card 34 of 113
34 / 113
In Bash, enclosing commands in parentheses, as in (cd /tmp; pwd), runs them in the current shell, so the directory chan…
Front
In Bash, enclosing commands in parentheses, as in (cd /tmp; pwd), runs them in the current shell, so the directory change remains in effect after the parentheses close.
Back
Parentheses start a subshell, a child process, so the cd affects only that subshell and the parent shell stays in its original directory. Running the commands in the current shell requires braces, as in { cd /tmp; pwd; }.
Show the back
Press the card to see the back
Study this deck