View Single Post
  #2   (View Single Post)  
Old 24th February 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by PleaseHelpAnewbie View Post
It does change, but it doesn't stay permanent
To be retained from one session to the next, this setting need to be written to ~/.profile. To do so,

$ PS1="\d \t [\w]#"
$ echo $PS1 >> ~/.profile

You can check to ensure that this has been saved by issuing the following command:

$ cat ~/.profile

The setting for PS1 should now appear at the bottom of the file.

Note that ending PS1 with a '#' is not necessarily following convention. All user accounts typically have a '$' prompt. '#' is reserved to designate the root account.

You can determine how you are logged into the system by issuing the following command:

$ whoami

If you are logged in as root, you really need to create a non-root account & use it exclusively. Logging into a system using the root account is not considered a best practice.

And while you are a newbie, you will save yourself much aggravation by taking the time now to study the FAQ:

http://openbsd.org/faq/index.html
Reply With Quote