How do I open a .sh file in Linux?

The procedure to run the .sh file shell script on Linux is as follows:

  1. Set execute permission on your script: chmod +x script-name-here.sh.
  2. To run your script, enter: ./script-name-here.sh. Another option is as follows to execute shell script: sh script-name-here.sh. bash script-name-here.sh.

For More Information Please Refer:


You May Also Like to Read: