Solved

changing prompt display?

Posted on 2000-02-15
6
237 Views
Last Modified: 2010-04-21
hi,

how to chnage the prompt?

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

Thanx
0
Comment
Question by:bsher
  • 4
6 Comments
 

Author Comment

by:bsher
ID: 2522017
by the way,

how to enable .bash_history for user homedirectory?
0
 
LVL 1

Accepted Solution

by:
sereda earned 10 total points
ID: 2522312
I see that you're using bash, so put the following lines into your .profile:
PS1="\u@\h\\\w\$ "
export PS1
0
 

Author Comment

by:bsher
ID: 2525319
still can't ? and for the .bash_history ? how to 'enable' ?
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:bsher
ID: 2525410
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
 

Author Comment

by:bsher
ID: 2525813
Thanx

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

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

Expert Comment

by:bal_38
ID: 14500027
Hi

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

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now