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

How to execute script in linux

藏色散人
Release: 2019-11-12 09:50:12
Original
3938 people have browsed it

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
Copy after login

(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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template