Register
It is currently Tue Jul 29, 2014 6:55 pm

Finding out where bash is on your system.


All times are UTC - 6 hours


Post new topic Reply to topic  [ 3 posts ] 
Author Message
 PostPosted: Mon May 16, 2005 8:48 pm   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 664
Location: Des Moines, Iowa
To find out where bash is on your system, try running this long looking command:

Code:
grep bash /etc/passwd | awk -F: '{print $7}' | sort -u


you should be rewarded with a response like:

Code:
/bin/bash

or perhaps
Code:
/usr/local/bin/bash


Top
 Profile WWW  
 PostPosted: Wed Aug 10, 2005 11:51 pm   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 664
Location: Des Moines, Iowa
FILES
/bin/bash
The bash executable

/etc/profile
The systemwide initialization file, executed for login shells

/etc/bash.bashrc
The systemwide per-interactive-shell startup file

/etc/bash_logout
The systemwide login shell cleanup file, executed when a login shell exits

~/.bash_profile
The personal initialization file, executed for login shells

~/.bashrc
The individual per-interactive-shell startup file

~/.bash_logout
The individual login shell cleanup file, executed when a login shell exits

~/.inputrc
Individual readline initialization file


Top
 Profile WWW  
 PostPosted: Thu Aug 11, 2005 9:36 pm   
Site Admin

Joined: Tue May 17, 2005 7:31 pm
Posts: 251
Location: Georgia
don't forget you can also run
Code:
<- jb:/home/jbsnake -> whereis bash
bash: /bin/bash /usr/man/man1/bash.1.gz
<- jb:/home/jbsnake ->

or more specifically
Code:
<- jb:/home/jbsnake -> which bash
/bin/bash
<- jb:/home/jbsnake -> 


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP