Home >Operation and Maintenance >Linux Operation and Maintenance >What is the command to run files in linux

What is the command to run files in linux

王林
王林Original
2020-10-27 15:04:0218776browse

The command to run a file under Linux is: [./filename.sh]. Specific method: First execute the [chmod 777 filename.sh] command to grant file permissions; then execute the [./filename.sh] command to run the file.

What is the command to run files in linux

Run the c language file and execute the following command:

(Video sharing: linux video tutorial)

sudo gedit test.c
gcc -o test 文件名.c
./test

Run the .sh file

First enable permissions, and then execute the following command

chmod 777 文件名.sh
./文件名.sh

Related recommendations:linux tutorial

The above is the detailed content of What is the command to run files 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