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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SHELLS

Status
Not open for further replies.

durban56

Technical User
Oct 10, 2006
38
US
hi Guys,

How do I make the bash shell my shell everytime I logon to the system. Also how do I display the current directory i'm in at the prompt.
 
You should be able to do this (depending on your system security settings):

passwd -e /bin/bash your_user_name

Or, if you have root access:

usermod -s /bin/bash your_user_name
 
You set the PS1 variable to change your prompt, for e.g. the following setting:

[tt]PS1='$PWD $ '[/tt]

..would make your prompt like this:

[tt]/some/dir $[/tt]

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top