shell embedding and options

shell embedding Shells can be embedded on the command line, or in other words, the command line scan can spawn new processes containing a fork of the current shell. You can use variables to prove that new shells are created. In the screenshot below, the variable $var1 only exists in the (temporary) sub shell. You … Read more

control operators

In this post we put more than one command on the command line using control operators. We also briefly discuss related parameters ($?) and similar special characters(&). ; semicolon You can put two or more commands on the same line separated by a semicolon ; . The shell will scan the line until it reaches … Read more

commands and arguments(shell expansion)

arguments One of the primary features of a shell is to perform a command line scan. When you enter a command at the shell’s command prompt and press the enter key, then the shell will start scanning that line, cutting it up in arguments. While scanning the line, the shell may make many changes to … Read more