Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My freebsd terminal always only show "#" I want it show current directory. How can I manage that? Thank you indeed!

share|improve this question

migrated from Dec 24 '10 at 16:10

This question came from our site for professional and enthusiast programmers.

That's because you're logged in as root. – Rafe Kettler Dec 24 '10 at 6:24
Check here for all the shell customization information you can stand: – Cody Gray Dec 24 '10 at 6:29
type pwd (print working directory) for quick look – Eric Fortis Dec 24 '10 at 6:30

1 Answer 1

up vote 2 down vote accepted

if using bash shell - in .bash_profile add:

PS1="[\u@\h:\w] " 
case `id -u` in
      0) PS1="${PS1}# ";;
      *) PS1="${PS1}$ ";;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.