Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)

I am working on the bash script like:

#!/bin/bash

echo Hello world!

How can I execute this in my Terminal?

1 Answer

0 votes
by (36.8k points)

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

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Dec 10, 2020 in Linux by blackindya (18.4k points)
0 votes
1 answer
asked Dec 5, 2020 in Linux by blackindya (18.4k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...