About 59 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? What do we ...

  2. linux - What's a .sh file? - Stack Overflow

    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 of the file, …

  3. WIN10下如何在powershell或者cmd中运行.sh文件?

    Apr 10, 2020 · 参考文章 zhouzhou:【git】Windows下运行.sh文件 安装git,在系统环境中增加git的bin路径。 然后你会发现 在 cmd 中,sh还是执行不了,但 bash 可以(win10 用bash代替sh)。 …

  4. unix - What is the difference between bash and sh? - Super User

    sh can either mean Bourne shell or /bin/sh, which is some other (POSIX-conformant) shell on most modern platforms. "The POSIX shell" is the abstract shell defined by POSIX, which is implemented …

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

    Mar 9, 2018 · > chmod +x /path/to/script.sh # using specific permissions instead # FYI, this makes these scripts inaccessible by ANYONE but an administrator > chmod 700 /path/to/script.sh # set all files in …

  6. linux - What does $@ mean in a shell script? - Stack Overflow

    Apr 3, 2012 · What does a dollar sign followed by an at-sign (@) mean in a shell script? For example: umbrella_corp_options $@

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

  8. 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 script_name.bat in windows.

  9. How to execute .sh files on Windows? - Super User

    83 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 execute .sh files …

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