Home >Operation and Maintenance >Linux Operation and Maintenance >What is the command to run files in linux
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.
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!