Get the App
SLTechnology News&Howtos  ›  Servers  › 

How many ways can ​ run linux programs? What are the differences?

Shulou Source: shulou.com Published: 2022-06-03 06:05:39 09月21日 Update

There are three ways to run linux programs, which are:

1. Make the file executable and run the file directly.

The chmod command modifies the permissions of the file. + x gives the file executable permissions. Just like we run the program above. But the results we see are somewhat different from what we imagined.

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

As shown in the following figure:

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

3. Use source to execute files.

The above are the details of how to run the Linux program, please pay attention to other related articles!

Tags: Programs files runs commands permissions interpreters interpreters methods content that is articles more results Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Shulou Information Microsoft Shulou Technology vpn