Home > Article > Operation and Maintenance > How to execute script in linux
How to execute script in Linux?
First of all, the script needs to have execution permission: chmod u Select the shell program, commonly used ones include sh, bash, tcsh, etc.;
and then enter the command:
bash myshell.sh
(where bash is the name of the shell, and myshell.sh is the code you want to execute)
Recommended: "
Linux Tutorial"
The above is the detailed content of How to execute script in linux. For more information, please follow other related articles on the PHP Chinese website!