Hello I am lost sorry I dont know why my script wont run
my script is: echo "hi"
when i type: sudo ./my.sh
it shows: unable to excute my.sh: no such file or directory hangup
and when i type: ./my.sh
it shows: -bash: ./my.sh: bin/bash: bad interpreter: no such file or directory
it would be great if you can help me thank you very much
echo "hi"
, but has a#!
line - which is incorrectly written with a relative path#!bin/bash
instead of absolute path#!/bin/bash
– steeldriver Dec 08 '21 at 12:40