Create and Execute First BASH Program
دوشنبه, ۲۴ مرداد ۱۴۰۱، ۰۷:۴۷ ب.ظ
Open any editor to create a bash file. Here, nano editor is used to create the file and filename is set as ‘First.sh’
$ nano First.sh
Add the following bash script to the file and save the file.
#!/bin/bash
echo "Hello World"
$ bash First.sh
Or,
$ chmod a+x First.sh
$ ./First.sh
- ۰۱/۰۵/۲۴