?
Solved

changing prompt display?

Posted on 2000-02-15
6
Medium Priority
?
248 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 30 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
Technology Partners: 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

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…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…
Suggested Courses

719 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