Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: 15
what is /bin/bash


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.

Old 02-15-2006, 09:05 AM   #2
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
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
Registered: Feb 2006
Posts: 71

Original Poster
Rep: Reputation: 15
Hello Scuzzman,

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

Old 02-15-2006, 09:59 AM   #5
Registered: Oct 2003
Location: Tennessee
Distribution: Fedora 22, CentOS
Posts: 177

Rep: Reputation: 16
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
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
Registered: Aug 2002
Posts: 19,534

Rep: Reputation: 3139Reputation: 3139Reputation: 3139Reputation: 3139Reputation: 3139Reputation: 3139Reputation: 3139Reputation: 3139Reputation: 3139Reputation: 3139Reputation: 3139
Linux directory structure. Not exactly the same in all distros.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:25 AM.

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