About 9,430,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. 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.

  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.

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

  5. linux - What is /bin/sh -c? - Stack Overflow

    Oct 21, 2010 · /bin/sh: This launches a Bourne shell, a basic command-line interpreter that is available on most Unix-like operating systems. -c: This option tells the shell to read the …

  6. How do I get the directory where a Bash script is located from …

    How do I get the path of the directory in which a Bash script is located, inside that script? I want to use a Bash script as a launcher for another application. I want to change the working directo...

  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. 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. How do I pause my shell script for a second before continuing?

    Feb 7, 2014 · I have only found how to wait for user input. However, I only want to pause so that my while true doesn't crash my computer. I tried pause(1), but it says -bash ...

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