What is BASH shell?
Bash is built in shell in most of the Linux operating systems. Its the shell that directly interact with the operating system and executes the commands. Let us write as basic bash shell script that will print a hello message.
#!/bin/bash
echo " This is my first bash script"
save the code in a file name as script01.sh and execute on the Linux shell. The out put will be as below show:
lab01> bash script01.sh
This is my first bash script
Leave a Reply