Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
$ bash date /bin/date: /bin/date: cannot execute binary file $ bash -c date Thu Apr 14 19:27:08 EDT 2016
What does the error message of bash date mean? What does bash expect date to be?
bash date
bash
date
The reason bash throws this error is becaue /bin/date is a binary file. It expects it to be a shell script, and it would work if it was.
/bin/date
bash file
means you execute a shell script called file, but with -c it reads the input as a sequence of bash commands.
file
-c
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.