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

王林
Release: 2020-10-30 17:00:24
Original
18792 people have browsed it

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

Run the .sh file

First enable permissions, and then execute the following command

chmod 777 文件名.sh
./文件名.sh
Copy after login

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!

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