LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 08: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, 08: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, 08: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, 08: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, 08:59 AM   #5
tnandy
Member
 
Registered: Oct 2003
Location: Tennessee
Distribution: Devuan 3.0 (Beowulf)
Posts: 217

Rep: Reputation: 18
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 09:04 AM.
 
Old 02-15-2006, 09: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, 09:23 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

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


Reply



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 02:59 PM
What is the difference between #!/bin/bash and #!/bin/sh? mTorbin Linux - Newbie 5 11-09-2005 12:10 PM
Change /bin/bash to /bin/zsh Smokey Slackware 12 07-14-2004 01:06 AM
why did bash 2.05b install delete /bin/bash & "/bin/sh -> bash"? johnpipe Linux - Software 2 06-06-2004 06:42 PM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration