Changes

Jump to: navigation, search

OPS235 Lab 3 - CentOS7 - VMware

9 bytes added, 08:51, 7 June 2016
no edit summary
{| width="40%" align="right" cellpadding="10"
|- valign="top"
|colspan="2"|{{Admon/note|Using '''&amp;&amp;''' and '''&#124;&#124;''' Conditional Statements|A very useful trick when running several commands in sequence is to use conditional statments. The '''&amp;&amp;''' conditional will run the subsequent command only if the previous command returns a true (0) exit status, for example: <br>'''./configure && make'''. The '''&#124;&#124;''' conditional will run the subsequent command only if the previous command returns a false (non-zero) exit status, for example: <br>'''./configure &#124;&#124; echo "Houston, we have a problem"'''. These conditional can be combined, for example: <br>'''./configure && make &#124;&#124; echo "Houston, we have a problem"'''}}
13,420
edits

Navigation menu