Home  >  Article  >  Operation and Maintenance  >  How to execute script in linux

How to execute script in linux

藏色散人
藏色散人Original
2019-11-12 09:50:123793browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn