sh--e

Fri, 01 May 2026 12:27:39 +0000

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 ... sh files are unix (linux) shell executables files, they are the equivalent (but much more powerful) of bat files on windows. So you need to run it from a linux console, just typing its name the same you do. A script doesn't have to end with .sh it can end in .txt as shown here, or have no extension whatsoever. Instead of just +x (only you can execute the script), use a+x so all users can. I discovered the sh -c command. I found it before I posted here but I can't find any posts from Google that explain it, so I would like to know what it is and what its complete syntax is.