About 12,100,000 results
Open links in new tab
  1. linux - What's a .sh file? - Stack Overflow

    5 Typically a .sh file is a shell script which you can execute in a terminal. Specifically, the script you mentioned is a bash script, which you can see if you open the file and look in the first line …

  2. shell - Difference between sh and Bash - Stack Overflow

    When writing shell programs, we often use /bin/sh and /bin/bash. I usually use bash, but I don't know what's the difference between them. What's the main difference between Bash and sh? …

  3. How to run .sh on Windows Command Prompt? - Stack Overflow

    Oct 23, 2014 · Your answer is presented as if you expect to be able to type sh on an arbitrary Windows command prompt and have it work.

  4. linux - What exactly is the sh command? - Super User

    sh is the bourne shell. There are several shells, of which bourne is the old standard, installed on all unix systems, and generally the one you can guarantee will exist. The shell is the command …

  5. sh - [: missing `]' in bash script - Stack Overflow

    Feb 9, 2016 · Related, but not picking up the case below though Bash scripting missing ']' NO LINE NUMBER SHOWN, just a bash: [: missing ']' BIG BUGGER: A bash function has no line …

  6. Run bash script from Windows PowerShell - Stack Overflow

    Jul 8, 2009 · There is now a "native" solution on Windows 10, after enabling Bash on Windows, you can enter Bash shell by typing bash: You can run Bash script like bash ./script.sh, but …

  7. How do I run .sh or .bat files from Terminal? - Stack Overflow

    Jun 10, 2013 · Type bash script_name.sh or ./script_name in linux terminal. Before using ./script_name make you script executeable by sudo chmod 700 script_name and type …

  8. Running sh script with WSL returns "command not found"

    Feb 14, 2022 · The original wsl -e sh script.sh only runs the sh and skips bash entirely, saving on load time. Note: Whether or not you have a shebang line doesn't matter in this case, because …

  9. executable - Running .sh scripts in Git Bash - Stack Overflow

    Apr 4, 2016 · Git bash is looking for the sh-bang (#!/ [interpreter]), and that's what it uses to assess executablity. As such, the answer here is actually just wrong, except for the part which …

  10. shell - .sh File Not Found - Stack Overflow

    Mar 19, 2015 · I'm trying to execute test.sh on terminal. My test.sh is in the /Home/monty folder and I made it executable: chmod 755 test.sh I try to execute it using: $./test.sh I get an error: …