How To Run A .SH File In Linux?

Open a terminal

Navigate to the directory containing the `.sh` file

Make the file executable: `chmod +x filename.sh`

Run the script: `./filename.sh`

Or run it with Bash: `bash filename.sh`

Or run it with Sh: `sh filename.sh`

Suggested for You

Trending Today