What is bash or bin/bash used for and why is it on Apple devices?

Can some explain this and shells? It showed up on my Mac that I am using bash and that my Mac username created it.


Thank you

Posted on Nov 2, 2017 1:44 AM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on Nov 2, 2017 5:09 AM

Hello Hconley33,

Why do you ask? While there is nothing wrong with bash, unless you are a developer or working on the command line, you should never know it is there. Are you getting Terminal windows appearing unexpectedly?

18 replies
Sort By: 
Question marked as ⚠️ Top-ranking reply

Nov 2, 2017 5:09 AM in response to Hconley33

Hello Hconley33,

Why do you ask? While there is nothing wrong with bash, unless you are a developer or working on the command line, you should never know it is there. Are you getting Terminal windows appearing unexpectedly?

Reply

Nov 5, 2017 6:47 AM in response to etresoft

No issues that I know of like that. My husband was exploring I guess on the Mac and when he looked up bash on Google there weren’t very good explanations for the script except that it is used for secret messaging I guess. I am not familiar with scripts and commands at all. Do you know GitHub? Some commands have GitHub in there. Does Apple use this?

Reply

Nov 5, 2017 9:13 AM in response to Hconley33

I'm sorry, but without more specifics, I can't give an answer to all of that. I can assure you that bash doesn't have anything to do with secret messaging. But then again, modern computers are extraordinarily complex devices. One could write a secret messaging app using bash and Github, and run in on an Apple machine. But I suspect that whatever your husband was exploring is completely normal.

Reply

Nov 5, 2017 9:29 AM in response to Hconley33

bash is a shell program, that allows the very cryptic world of Darwin (the unix-like base on which the rich Graphical User Interface of MacOS is built) to be accessed as a command-line interface.


If you grew up with Windows, it looks similar to "MS-DOS mode" in Windows.


It is mostly used by developers, but there are a few programs that use it directly.


--------

GitHub is an important Repository used by Open-Source software developers, to provide downloadable executable files and to allow others to "help" with development by rigorously checking out source files and checking in modifications when nearly finished.


GitHub provides the rigorous structure needed to manage development by multiple unrelated developers, so that changes made by one are not accidentally clobbered by another.


"Ordinary" users may have downloaded Open Source software executable files from there.

Reply

Nov 6, 2017 7:25 AM in response to Hconley33

Hconley33 wrote:


A little off track but do you know what this means?

I'm sorry, but I don't know what "this" is. Do you have a screen shot or something? Any kind of text or alert that appears on your screen? Anything? You are asking very general questions. Can you explain what prompted you to even ask these questions? That would help immensely.

Reply

Nov 6, 2017 8:15 AM in response to Hconley33

That is some low-level log file. It has nothing to do with bash or any kind of messaging.


A modern Mac is one of the most complex computing systems ever made. You will not find anyone outside of Apple, or inside of Apple for that matter, who understands everything inside it.

Reply

Nov 6, 2017 8:33 AM in response to Hconley33

You and your husband should each have your own Account, with separate login (it does not have to be a secret from each other, just separate).


Then if he makes the desktop dark purple, you don't have to endure it because your Account has its own desktop settings, with much nicer pictures. And his junk won't annoy you, because you won't even see it any more.

Reply

Nov 6, 2017 9:06 AM in response to etresoft

Do you know why it says fax log file? Yes I understand it’s very complex and different things are needed. I am just trying to get some explanation to share about what they are for and why it is on the Mac. Such as GitHub. The explanation for bash helped thank you very much

Reply

Nov 6, 2017 9:29 AM in response to Hconley33

the information under fax log files is --


NOTHING, you have no fax log files.


The next subject is login time accounting, and your ONE account was used for everything.

ROOT is available only to the System itself.


--------

You really need to have your own account so that when your husband takes things apart, you do not have to get tripped up by all the parts he leaves around.

Reply

Nov 6, 2017 12:33 PM in response to Hconley33

Because one of the things the "periodic" script does is rotate fax log files, if you have any. I don't think you realize the true extent of how complex these things are. There are dozens of such log files. Some of them may have hundreds of thousands of entries in them every single day.

Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

What is bash or bin/bash used for and why is it on Apple devices?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.