<?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 Re: Root Prompt Profile in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/root-prompt-profile/m-p/2722377#M948433</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Steve has already given the syntax for changing the PS1 prompt in your profile.  Howver, be aware that *by standard* root's PS1 prompt is "#" whereas the PS1 prompt of a non-root user is "$".  I would suggest you stay with the segregation of those two characters regardless of what else (hostname, current working directory, etc) you add to the PS1 string.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Mon, 13 May 2002 11:36:38 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2002-05-13T11:36:38Z</dc:date>
    <item>
      <title>Root Prompt Profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-prompt-profile/m-p/2722374#M948430</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to change the PROMPT for user root. The prompt is only "#" and I want to change to "hostname - ROOT $". The root shell is /sbin/sh and the home directory is "/". I try to change in .profile but did not have success.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Mauro</description>
      <pubDate>Mon, 13 May 2002 11:24:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-prompt-profile/m-p/2722374#M948430</guid>
      <dc:creator>Mauro_8</dc:creator>
      <dc:date>2002-05-13T11:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Root Prompt Profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-prompt-profile/m-p/2722375#M948431</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;export PS1=$(hostname):\$PWD" # "&lt;BR /&gt;&lt;BR /&gt;as last line of .profile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Be aware that your .profile may not always be read&lt;BR /&gt;&lt;BR /&gt;especially by CDE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;            Steve Steel</description>
      <pubDate>Mon, 13 May 2002 11:30:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-prompt-profile/m-p/2722375#M948431</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-05-13T11:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Root Prompt Profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-prompt-profile/m-p/2722376#M948432</link>
      <description>Mauro, &lt;BR /&gt;&lt;BR /&gt;beware of straying away from standards - I'd never use '$' in the prompt for root, as some sysadmin might come along and think he's not root... (one rm -rf later...)&lt;BR /&gt;&lt;BR /&gt;Stick to using '#' at the end of roots prompt, you can put anything else before this though.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 13 May 2002 11:33:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-prompt-profile/m-p/2722376#M948432</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2002-05-13T11:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Root Prompt Profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-prompt-profile/m-p/2722377#M948433</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Steve has already given the syntax for changing the PS1 prompt in your profile.  Howver, be aware that *by standard* root's PS1 prompt is "#" whereas the PS1 prompt of a non-root user is "$".  I would suggest you stay with the segregation of those two characters regardless of what else (hostname, current working directory, etc) you add to the PS1 string.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 13 May 2002 11:36:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-prompt-profile/m-p/2722377#M948433</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-05-13T11:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Root Prompt Profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-prompt-profile/m-p/2722378#M948434</link>
      <description>Hi Mauro,&lt;BR /&gt;&lt;BR /&gt;Try this in the root .profile,&lt;BR /&gt;&lt;BR /&gt;export HOST=`/usr/bin/hostname`&lt;BR /&gt;export PS1='$HOST - $LOGNAME =&amp;gt;'&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Mon, 13 May 2002 12:19:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-prompt-profile/m-p/2722378#M948434</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-05-13T12:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Root Prompt Profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-prompt-profile/m-p/2722379#M948435</link>
      <description>Hi Mauro&lt;BR /&gt;&lt;BR /&gt;This is for default KSH&lt;BR /&gt;&lt;BR /&gt;HNAME=`hostname`&lt;BR /&gt;PS1='$HNAME:$PWD:#'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Mon, 13 May 2002 12:37:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-prompt-profile/m-p/2722379#M948435</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-05-13T12:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Root Prompt Profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-prompt-profile/m-p/2722380#M948436</link>
      <description>Try with&lt;BR /&gt;&lt;BR /&gt;PS1="`hostname` - ROOT $"&lt;BR /&gt;&lt;BR /&gt;in /.profile&lt;BR /&gt;&lt;BR /&gt;Andrea</description>
      <pubDate>Tue, 14 May 2002 07:04:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-prompt-profile/m-p/2722380#M948436</guid>
      <dc:creator>Andrea Pagani</dc:creator>
      <dc:date>2002-05-14T07:04:11Z</dc:date>
    </item>
  </channel>
</rss>

