LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-15-2006, 09:02 AM   #1
michshelly
Member
 
Registered: Feb 2006
Posts: 71

Rep: Reputation: 15
what is /bin/bash


Hello,

Can someone tell me what /bin is please?

I know (well I think I know) that bash is the shell but I don't understand the /bin.

eg. when I type:
echo My shell is $SHELL

My shell is bin/bash

is displayed.


thanks
Michelle
 
Old 02-15-2006, 09:05 AM   #2
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
That's the full path to the bash program (your shell).
 
Old 02-15-2006, 09:38 AM   #3
caspervn
Member
 
Registered: Jul 2005
Location: Vietnam
Distribution: Fedora Core 2
Posts: 55

Rep: Reputation: 15
/bin is a directory (same as /usr, /etc, ..)
 
Old 02-15-2006, 09:39 AM   #4
michshelly
Member
 
Registered: Feb 2006
Posts: 71

Original Poster
Rep: Reputation: 15
Hello Scuzzman,

Thanks for your reply. Is \bin short for something? Binary? Rubbish bin???

Thanks
Michelle
 
Old 02-15-2006, 09:59 AM   #5
tnandy
Member
 
Registered: Oct 2003
Location: Tennessee
Distribution: Fedora 22, CentOS
Posts: 169

Rep: Reputation: 15
bash is a program and stands for Bourne Again SHell. This program takes a text file as input, assumes the text consists of instructions, and tries to process those instructions.

bin is a directory, also sometimes known as a folder.

If you are familiar with a Windows environment, "/bin/bash" in Linux would probably look more like "C:\bin\bash.exe" in Windows.

I've always assumed bin was short for binary, but everyone knows what happens when you assume.

Last edited by tnandy; 02-15-2006 at 10:04 AM.
 
Old 02-15-2006, 10:18 AM   #6
juicymixx
LQ Newbie
 
Registered: Feb 2006
Posts: 4

Rep: Reputation: 0
hey michshelly,

tnandy is correct, /bin/bash is the path to the executable named bash (which is the shell that you are running). The /bin/ directory contains binary files (well, mostly binary files) - consider them as executable utilities that make your Linux experience more useful.
 
Old 02-15-2006, 10:23 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,128

Rep: Reputation: 1600Reputation: 1600Reputation: 1600Reputation: 1600Reputation: 1600Reputation: 1600Reputation: 1600Reputation: 1600Reputation: 1600Reputation: 1600Reputation: 1600
Linux directory structure. Not exactly the same in all distros.
http://www.comptechdoc.org/os/linux/...ilestruct.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when starting up snort: bash:!/bin/sh/usr/local/bin/snort :Eent not found cynthia_thomas Linux - Software 1 11-11-2005 03:59 PM
What is the difference between #!/bin/bash and #!/bin/sh? mTorbin Linux - Newbie 5 11-09-2005 01:10 PM
Change /bin/bash to /bin/zsh Smokey Slackware 12 07-14-2004 02:06 AM
why did bash 2.05b install delete /bin/bash & "/bin/sh -> bash"? johnpipe Linux - Software 2 06-06-2004 07:42 PM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 03:30 AM


All times are GMT -5. The time now is 04:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration