About 12,100,000 results
Open links in new tab
  1. 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? …

  2. 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 …

  3. 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 …

  4. 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.

  5. 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 …

  6. 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 …

  7. shell script - How to execute .sh files on Windows? - Super User

    82 When I am trying to execute a .sh file with the command line ./name.sh, I am getting this error: "." is not recognized as an internal or external command, operable or batch file How can I …

  8. 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: …

  9. linux - bash sh - command not found - Stack Overflow

    Remove ; from the end of your script lines. This doesn't happen in my bash, so I'm not sure what exactly is wrong, but my guess is this: ; is a separator of commands. Since your last command …

  10. sh - How to use source command in shell script? - Super User

    Quick answer: source is BASH SHELL BUILTIN command. See man bash (search for " source filename [arguments] " to find it). It doesn't work in question probably because you are using …