Shebang not works

shebang not works
also file have execute permission for all

shedef

Run the script using ./‘fileName’

1 Like

If you want to define it as a command, it is recomended you remove de “.sh” from the end of the command and insert the script path laction inside the env variable $PATH, just like this: export PATH=$PATH:/home/ghani-dev/scripts

Once done it, you may be succesful executing the command.