Home  >  Article  >  Operation and Maintenance  >  How to run Linux programs

How to run Linux programs

尚
Original
2020-01-14 10:53:235328browse

How to run Linux programs

There are three ways to run linux programs, namely: (Free video tutorial sharing: linux video tutorial)

1. Make the file accessible Execute permissions to run the file directly.

chmod command is used to modify the permissions of files. x gives the file executable permissions. Just like we ran the program above. But the results we saw were somewhat different from what we imagined.

How to run Linux programs

#2. Directly call the command interpreter to execute the program.

As shown in the figure below:

How to run Linux programs

Since our interpreter is /bin/sh, we use the sh command interpreter to execute the program.

3. Use source to execute the file.

How to run Linux programs

Recommended related articles and tutorials: linux tutorial

The above is the detailed content of How to run Linux programs. 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