Solved

changing prompt display?

Posted on 2000-02-15
6
241 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

863 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

28 Experts available now in Live!

Get 1:1 Help Now