Save the file, then to run open the terminal, and type ./hello_world.sh
PS: You might get permission denied error, due to hello_world.sh file not having execute permission for any users.
Use “chmod +x hello_world.sh” to provide execute permission.
This first line (#!/bin/bash or #!/bin/sh) has a name. It is known as ‘she-bang‘ (shabang). This derives from the concatenation of the tokens sharp (#) and bang (!).
It is also called as sh-bang, hash-bang, pound-bang or hash-pling. In computing, a she-bang is the character sequence consisting of the characters number sign and exclamation mark (#!) at the beginning of a script.
Here is how you can check disk usage in unix terminal.
Disk usage is a critical thing in servers, Certain times the web service or server acts weird and it could be disk space being full.
In order to check the disk space we can use “df” command in unix. which will show us the disk/file system, used and available disk quantity. also the mount location of the disk.
We have discussed below listed commands
df – disk usage checking
man – man is nothing but manual, by passing the command as parameter to this command will open the manual for the command in parameter.
aryanz_co_in@pop-os:~/dev/folder1$ touch hello.txt
aryanz_co_in@pop-os:~/dev/folder1$ vi hello.txt
[Edit the file] to save press Esc + :wq (w is for save and q is for quit)
aryanz_co_in@pop-os:~/dev/folder1$ cat hello.txt
Keep the learning short, not to waste your precious time.