<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic setting user prompt in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/setting-user-prompt/m-p/2745384#M78611</link>
    <description>/bin/bash shell&lt;BR /&gt;user@host[pwd]&lt;BR /&gt;pwd is full path  can anyone help me...?</description>
    <pubDate>Sat, 15 Jun 2002 00:15:43 GMT</pubDate>
    <dc:creator>mw_4</dc:creator>
    <dc:date>2002-06-15T00:15:43Z</dc:date>
    <item>
      <title>setting user prompt</title>
      <link>https://community.hpe.com/t5/operating-system-linux/setting-user-prompt/m-p/2745384#M78611</link>
      <description>/bin/bash shell&lt;BR /&gt;user@host[pwd]&lt;BR /&gt;pwd is full path  can anyone help me...?</description>
      <pubDate>Sat, 15 Jun 2002 00:15:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/setting-user-prompt/m-p/2745384#M78611</guid>
      <dc:creator>mw_4</dc:creator>
      <dc:date>2002-06-15T00:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: setting user prompt</title>
      <link>https://community.hpe.com/t5/operating-system-linux/setting-user-prompt/m-p/2745385#M78612</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I am using RH7.3.&lt;BR /&gt;The default prompt is [user@host dir]$.&lt;BR /&gt;&lt;BR /&gt;Then I checked out "echo $PS1".&lt;BR /&gt;[\u@\h \W]\$&lt;BR /&gt;&lt;BR /&gt;So I want to change my prompt something like yours, I set my PS1 as,&lt;BR /&gt;&lt;BR /&gt;PS1=\\u@\\h[\\W]\$ &lt;BR /&gt;&lt;BR /&gt;Of course you have to put this command into your .bash_profile or .bashrc in your home directory.&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;</description>
      <pubDate>Sat, 15 Jun 2002 02:20:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/setting-user-prompt/m-p/2745385#M78612</guid>
      <dc:creator>I_M</dc:creator>
      <dc:date>2002-06-15T02:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: setting user prompt</title>
      <link>https://community.hpe.com/t5/operating-system-linux/setting-user-prompt/m-p/2745386#M78613</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Try :&lt;BR /&gt;&lt;BR /&gt;export PS1="`whoami`@`hostname`[\$PWD] "&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;&lt;BR /&gt;Kodjo&lt;BR /&gt;</description>
      <pubDate>Sat, 15 Jun 2002 19:09:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/setting-user-prompt/m-p/2745386#M78613</guid>
      <dc:creator>Kodjo Agbenu</dc:creator>
      <dc:date>2002-06-15T19:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: setting user prompt</title>
      <link>https://community.hpe.com/t5/operating-system-linux/setting-user-prompt/m-p/2745387#M78614</link>
      <description>The token for the 'full path' (as against just the last dir in path) is \w, not \W.&lt;BR /&gt;&lt;BR /&gt;so:&lt;BR /&gt;&lt;BR /&gt;PS1='\u@\h[\w]\$ '&lt;BR /&gt;&lt;BR /&gt;This is covered in 'man bash', under the section 'PROMPTING'.</description>
      <pubDate>Sun, 16 Jun 2002 21:53:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/setting-user-prompt/m-p/2745387#M78614</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2002-06-16T21:53:43Z</dc:date>
    </item>
  </channel>
</rss>

