>’ operator in bash. (adsbygoogle = window.adsbygoogle || []).push({}); ← Linking Commands • Home • Putting jobs in background →. $ bash 1NBYWDVWGI8z3TEMMLdJgpY5Dh8uGjznCR18RmfmZmQ

Click the … Create a file named, ‘read_file.sh’ and add the following code to read an existing file named, ‘book.txt’. You can check the following link to know more about directory creation. Simply use the sudo or su command as follows: sudo bash filename.sh. No matter the first command cmd1 run successfully or not, always run the second command cmd2: The value of count variable will increment by 1 in each step. The echo command is used for printing out information in bash. Here, two arguments, X and Y are read by this script and print the sum of X and Y. ‘-d’ option is used to test a particular directory is exist or not. Using While Loop: Create a bash file with the name, ‘while_example.sh’, to know the use of while … This script uses the exec Bash command so that the final running application becomes the container’s PID 1. The <>’ operator in bash. (adsbygoogle = window.adsbygoogle || []).push({}); ← Linking Commands • Home • Putting jobs in background →. $ bash