Linux shell script execution method

There is a script /home/start.sh under Linux, two commonly used methods to perform the following:
1,. / Start.sh. Note that at this time start.sh script must have executable permissions -x. There are similar to the absolute path to execute: /home/start.sh.
2 is performed using bash or sh shell script commands, parameters passed to the shell script as bash or sh command to execute, such as sh start.sh.

Guess you like

Origin www.cnblogs.com/doit8791/p/11489613.html