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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -