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.
#2. Directly call the command interpreter to execute the program.
As shown in the figure below:
Since our interpreter is /bin/sh, we use the sh command interpreter to execute the program.
3. Use source to execute the file.
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!