/bin/sh is the POSIX shell. For questions where portability is important. If the question is about .sh files, tag it with scripts
instead. On Ubuntu the POSIX shell is symlink to /bin/dash
, and [dash-shell] is therefore related to [sh] tag, and both may be used when tagging questions.
Questions tagged [sh]
232 questions
86
votes
3 answers
What is the sh -c command?
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.

Lan...
- 911
2
votes
2 answers
How to run my C programs with the Bourne Shell?
I have no problem running my C programs by switching to their directory and starting them with ./. However, I'm not sure why changing to the directory and then typing sh [Program Name] gives me this error:
Fortune_Teller_5000: 1:…
user453720
2
votes
0 answers
sh: 0: Can't open
I am trying to run this command
sh bbmap/bbduk.sh in1=fastq/Brca1Reads_ALL.1.fastq out1=fastq/Brca1Reads_ALL.1.TRIMMED.fastq ref=bbmap/resources/adapters.fa
On terminal, but I keep getting:
sh: 0: Can't open bbmap/bbduk.sh
I can't open bbduk.sh…

Rizwan
- 21
0
votes
1 answer
I cannot open .sh file in ubuntu 15.04
I right click and into properties I allow the permision to run as a programe. But still cannot run it. It is still opening in text document file
user448053
0
votes
1 answer
Can't run .sh file
Hi i am returning user of ubuntu, and i am trying to get label, and the problem how to run two files sh files in the terminal called:
install-sh.sh
configure.sh
and i have tried to enter from the terminal:
sudo sh…

Michael
- 2,499
- 5
- 19
- 24
0
votes
1 answer
executor failed running [/bin/sh -c apk add --update nodejs nodejs-npm]: exit code: 1
Please help me out to fix this error while building a docker image using this command,
docker build -t my-first-app .
My Dockerfile content is
FROM alpine
LABEL maintainer="aamirpinger@yahoo.com"
RUN apk add --update nodejs nodejs-npm
COPY .…
0
votes
1 answer
How to make shortcut for .sh file?
I have a file called RunRoR.sh i have enabled it to be executed and run as a software but when i double click it it doesn't do anything so in order to run it i have to do
~$ sh RunRoR.sh
Can i create a short cut or something?

James Gates
- 695
0
votes
1 answer
A puzzel about sh and ./
I have figured that if I want to use./to execute a script, I have to runchmod +x filefirst. But why can I execute it by using sh file without the chmod command? Doesn't sh need any executing permission?