Double checked locking pattern was used in sigleton initialization in multi-threaded environments prior to C++11. C++11 removes the need for manual locking. It guarantees concurrent execution […]
Signed integers can be used for positive, negative and zero, on the other hand, unsigned integers represents only non-negative numbers.A signed int uses the most significant […]
Commands in a shell script are executed from top to bottom. If some commandsfail, the execution continues to the next command. For example: Failing commands do […]
In some situations, saving stdout and stderr of your terminal command output can be crucial, To automatically save stdout and stderr, there are several options you can go with `>` : Write stdout […]
The shell variable HISTCONTROL controls what goes into the command history of bash shell. If HISTCONTROL variable equals to “ignorespace”, that means commands starting with a […]
Two types of variables exists in a Linux shell: Following command defines a shell variable: To convert a shell variable to environment variable following command can […]