how to execute a file in linux code example
Example 1: how to run .run file in linux
sudo chmod +x /path/to/file.run
sudo /path/to/file.run
Example 2: ubuntu make sh file executable
chmod +x <fileName>
sudo ./<fileName>
Example 3: how to execute a bash script in terminal
$ chmod +x fileName
$ ./fileName
Example 4: linux make executable
chmod 755 file.sh
Example 5: how to open file in linux
xdg-open <filename>
Example 6: linux how to execute a file
./file_name.sh