Skip to content

Commit c702deb

Browse files
committed
'how to write first bash script' added
1 parent 0cfbf62 commit c702deb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#**How to write your first bash script**
2+
*open a text editor and write the following code
3+
> #!/bin/bash
4+
echo "Hello, World"
5+
*save the file with .sh extension(e.g. firstscript.sh)
6+
*open terminal and go to the directory where you have saved the file firstscript.sh
7+
1.change permission of firstscript.sh
8+
> sudo chmod +x firstscript.sh
9+
2.Run your script using this command
10+
>./firstscript.sh
11+
12+
have fun!!!

0 commit comments

Comments
 (0)