Solved

changing prompt display?

Posted on 2000-02-15
6
246 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

752 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