Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I have an sh file which executes a php file. I'm trying to run it without using sh command. I want to run it using the command test.sh and not "sh test.sh".
How do I do that?
Add a hashbang as the first line of the script:
#!/bin/sh
Then set it as executable:
chmod +x test.sh
Then you should be able to run it with ./test.sh.
./test.sh
Add a comment
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.