Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting path using the Bash shell

Status
Not open for further replies.

abovebrd

IS-IT--Management
May 9, 2000
690
US
I am using the default shell (Bash) on a RH linux box.
My question is : How do I set the path so that each time I log in I do not have retype the complete path to each command ?

Example If I where using the Bourne shell I would use a .profile file in the users home directory.

How does this differ when using Bash



-Danny






 
never mind

I figured it out.

I just edited /etc/profile
Appened the path and it worked !!

Thanks

-Danny






 
Moreover you can edit ~/.bash_profile for each user inspectively.


Regards! I want to migrate to Canada or Australia. Any relative information you supplied will be appreciated!

zallen@cmmail.com
ICQ:101229409
 
could somebody tell me what all the settings mean in the Bash environment (you know, ".bashlogout", etc...). I have a presentation to do on "the bash shell and its settings" for monday.
Can anyone help me please!!

tjchlorinehead@hotmail.com
 
hi,

this might be late.. but what the heck...
.bashlogout is executed each time u "logout" as for any other questions `man bash' will provide all the answers.

hth,
shail.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top