Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux, how to execute an executable / non-executable file?

Tags:

linux

shell

In the Linux, how to execute an executable / non-executable file ?

. myfile.sh  --- works, why?
sh myfile.sh -- doesn't work, why ?

Thanks

like image 612
user595234 Avatar asked Nov 20 '25 10:11

user595234


1 Answers

sh ./myfile.sh should work though

like image 117
TryTryAgain Avatar answered Nov 21 '25 22:11

TryTryAgain



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!