I am using the CentOS 7.
I wrote my first bash script like this.
#!/bin/bash echo 'this is my first code'
and I saved it as hello_world
I made a directory in my root home directory.
Then I moved the script to the
Then I did this:
export PATH=~/bin:"$PATH" source ~/bin
Then I tried to run the script with the below command.
but I did not see the
this is my first code but I got a
bash: /root/bin/hello_world: Permission denied error instead.