Back
I am working on the bash script like:
#!/bin/bashecho Hello world!
#!/bin/bash
echo Hello world!
How can I execute this in my Terminal?
You need to type
$prompt: /path/to/script and hit enter.
Note that you have to make sure that the script has to execute permissions.
To know about Linux join the Linux training
Do check out the video below
31k questions
32.8k answers
501 comments
693 users