Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

SHELL PROMPT

Help!
I wanted to change my linux prompt and I added these 2 lines
PS1="[\u@home \W]\$"
export PS1
in my .bash_profile but it doesn't recognize them at all... Help!
0
bakame
Asked:
bakame
  • 2
1 Solution
 
vlatCommented:
Hello!

Try to insert them to .bashrc
0
 
bakameAuthor Commented:
Thanks! It works fine now... However, when I send out an email using the "mail" command, my hostname still appears after "@" in my email address. Is there any way that I can change that too?
0
 
bakameAuthor Commented:
Thanks again! I realized that this change is only local and has nothing to do with  my hostname...
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now