<?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: Console terminal in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/console-terminal/m-p/2470951#M775261</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If I remember well, HISTSIZE defauts to 0 for root.&lt;BR /&gt;Make sure HISTFILE is set to /.sh_history&lt;BR /&gt;and HISTSIZE to some positive integer (i.e. 256).&lt;BR /&gt;Make sure your shell is in vi editing mode 'set -o vi'&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
    <pubDate>Wed, 06 Dec 2000 09:26:04 GMT</pubDate>
    <dc:creator>Dan Hetzel</dc:creator>
    <dc:date>2000-12-06T09:26:04Z</dc:date>
    <item>
      <title>Console terminal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/console-terminal/m-p/2470950#M775260</link>
      <description>when using the main console or in fact logged in as root I am not able to use the handy esc and k which repeats the previous commands. Can anyone give me a hint on what to set. Running HP-UX 10.10 on Hp9000 K220. Thanks</description>
      <pubDate>Wed, 06 Dec 2000 09:23:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/console-terminal/m-p/2470950#M775260</guid>
      <dc:creator>DAVID SIMPSON_2</dc:creator>
      <dc:date>2000-12-06T09:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Console terminal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/console-terminal/m-p/2470951#M775261</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If I remember well, HISTSIZE defauts to 0 for root.&lt;BR /&gt;Make sure HISTFILE is set to /.sh_history&lt;BR /&gt;and HISTSIZE to some positive integer (i.e. 256).&lt;BR /&gt;Make sure your shell is in vi editing mode 'set -o vi'&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Dec 2000 09:26:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/console-terminal/m-p/2470951#M775261</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2000-12-06T09:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Console terminal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/console-terminal/m-p/2470952#M775262</link>
      <description>Type:&lt;BR /&gt;# ksh&lt;BR /&gt;# set -o vi&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Dec 2000 09:26:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/console-terminal/m-p/2470952#M775262</guid>
      <dc:creator>Tommy Palo</dc:creator>
      <dc:date>2000-12-06T09:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Console terminal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/console-terminal/m-p/2470953#M775263</link>
      <description>I believe the standard root's .profile doesnt setup anything needed to use command recall. We add the following to ours to get it working;&lt;BR /&gt;&lt;BR /&gt;HISTFILE=${HOME}/.history_files/.hist.`who am i|awk '{print $1}'`.$$.`date +%d%m%y.%H%M`&lt;BR /&gt;HISTSIZE=1000&lt;BR /&gt;export HISTFILE HISTSIZE&lt;BR /&gt;set -o vi&lt;BR /&gt;&lt;BR /&gt;or if you dont want unique history files then just set HISTFILE to $HOME/.sh_history (or whatever). We use unique history files as an audit trail as we have rootxx userids.</description>
      <pubDate>Wed, 06 Dec 2000 09:30:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/console-terminal/m-p/2470953#M775263</guid>
      <dc:creator>Carol Garrett</dc:creator>
      <dc:date>2000-12-06T09:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Console terminal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/console-terminal/m-p/2470954#M775264</link>
      <description>Hi this has been discussed in other threads see:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xee04a24d9abcd4118fef0090279cd0f9!0,00.html" target="_blank"&gt;http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xee04a24d9abcd4118fef0090279cd0f9!0,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;essentially, you have to ensure that HISTFILE is defined for root  - its better to set it up in the /etc/profile so that it is defined for everyone:&lt;BR /&gt;&lt;BR /&gt;# echo "export HISTFILE=~/.sh_history" &amp;gt;&amp;gt; /etc/profile&lt;BR /&gt;&lt;BR /&gt;logout and back in, and voila, all subsequent logins will be recorded.&lt;BR /&gt;&lt;BR /&gt;also see man sh-posix</description>
      <pubDate>Wed, 06 Dec 2000 09:33:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/console-terminal/m-p/2470954#M775264</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-12-06T09:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Console terminal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/console-terminal/m-p/2470955#M775265</link>
      <description>add these two lines into your /etc/profile or /.profile&lt;BR /&gt;&lt;BR /&gt;VISUAL=vi ; export VISUAL&lt;BR /&gt;HISTFILE=$HOME/.sh_history ; export HSITFILE</description>
      <pubDate>Wed, 06 Dec 2000 09:41:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/console-terminal/m-p/2470955#M775265</guid>
      <dc:creator>Rainer_1</dc:creator>
      <dc:date>2000-12-06T09:41:36Z</dc:date>
    </item>
  </channel>
</rss>

