About 9,500,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. Difference between "./" and "sh" in UNIX - Stack Overflow

    Feb 28, 2014 · In simple words, sh file1 executing sh command/executable with file1 as a parameter. In this case file1 doesn't require execute privilege as sh executable read and …

  5. How do I execute a bash script in Terminal? - Stack Overflow

    Mar 9, 2018 · It can work if sh is a symlink to bash, or if the script does not use any Bash-specific construct. In the former case, using bash instead of sh is the only correct, portable solution; in …

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

  7. How can I run a shell script on a Unix console or Mac terminal?

    To run a non-executable Bourne shell (executable sh) script, use: sh myscript To run a non-executable Bash script, use: bash myscript To start an executable (which is any file with …

  8. What is the difference between using `sh` and `source`?

    DESCRIPTION Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. Bash also incorporates useful features …

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

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