• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • Last Modified:

changing prompt display?

hi,

how to chnage the prompt?

now my prompt is "u@\h:\w> ", iwould like to change it to "username@server\directory"

Thanx
0
bsher
Asked:
bsher
  • 4
1 Solution
 
bsherAuthor Commented:
by the way,

how to enable .bash_history for user homedirectory?
0
 
seredaCommented:
I see that you're using bash, so put the following lines into your .profile:
PS1="\u@\h\\\w\$ "
export PS1
0
 
bsherAuthor Commented:
still can't ? and for the .bash_history ? how to 'enable' ?
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
bsherAuthor Commented:
Finally i get the prompt correctly because i delete the account and adduser again...

The freebsd default shell is /sh , right?
i assign to /usr/local/bin/bash .... so i get the correct prompt...

by the way, now the only problem is the .bash_history .....


Thanx
0
 
bsherAuthor Commented:
Thanx

finally i see the .bash_history......

By the way, why ./adduser  default is sh , not bash...just asking
0
 
bal_38Commented:
Hi

    May i know the usage of Microsoft Money product and its features.Can anyone pls say whether it is avail in freeware
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now