terminal - what is the use of parentheses in linux command -


i run following command in linux terminal. can tell me use of parentheses in linux terminal , following command ?

$(echo "get / http/1.0";echo "host: www.google.com"; echo) | nc www.google.com 80

( list )
placing list of commands between parentheses causes subshell environment created, , each of commands in list executed in subshell. since list executed in subshell, variable assignments not remain in effect after subshell completes.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -