<?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: RE : Repeat the last command type in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/re-repeat-the-last-command-type/m-p/3650181#M803480</link>
    <description>In some shell the command:&lt;BR /&gt;&lt;BR /&gt;!!&lt;BR /&gt;&lt;BR /&gt;repeats the last command you typed.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bob</description>
    <pubDate>Mon, 17 Oct 2005 03:45:55 GMT</pubDate>
    <dc:creator>B. Hulst</dc:creator>
    <dc:date>2005-10-17T03:45:55Z</dc:date>
    <item>
      <title>RE : Repeat the last command type</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/re-repeat-the-last-command-type/m-p/3650175#M803474</link>
      <description>Hi Sir, &lt;BR /&gt;   i've installe HP-UX on Hp integrity rx2600.&lt;BR /&gt;How to repeat the last command typed in HP-Ux?&lt;BR /&gt;Please advise , thanks.</description>
      <pubDate>Sat, 15 Oct 2005 13:03:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/re-repeat-the-last-command-type/m-p/3650175#M803474</guid>
      <dc:creator>Charles Ooi Chia Lun</dc:creator>
      <dc:date>2005-10-15T13:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: RE : Repeat the last command type</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/re-repeat-the-last-command-type/m-p/3650176#M803475</link>
      <description>Hi,&lt;BR /&gt; &lt;BR /&gt;Enable the shell history by adding these lines to your profile ( or /etc/profile if you want it for all users ):&lt;BR /&gt;&lt;BR /&gt;HISTFILE=$HOME/.sh_history&lt;BR /&gt;HISTSIZE=1000&lt;BR /&gt;export HISTFILE HISTSIZE&lt;BR /&gt;&lt;BR /&gt;Then log out and log on again. Press "Esc" key, and then "k" key to "navigate" through your previous commands.&lt;BR /&gt; &lt;BR /&gt;Regards,&lt;BR /&gt;Zigor</description>
      <pubDate>Sat, 15 Oct 2005 13:16:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/re-repeat-the-last-command-type/m-p/3650176#M803475</guid>
      <dc:creator>Zigor Buruaga</dc:creator>
      <dc:date>2005-10-15T13:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: RE : Repeat the last command type</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/re-repeat-the-last-command-type/m-p/3650177#M803476</link>
      <description>Charles,&lt;BR /&gt;&lt;BR /&gt;Or just type 'ksh -o vi'.&lt;BR /&gt;&lt;BR /&gt;The previous commands can be accessed by 'Esc - k'.&lt;BR /&gt;&lt;BR /&gt;Kurt</description>
      <pubDate>Sat, 15 Oct 2005 13:43:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/re-repeat-the-last-command-type/m-p/3650177#M803476</guid>
      <dc:creator>Kurt Beyers.</dc:creator>
      <dc:date>2005-10-15T13:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: RE : Repeat the last command type</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/re-repeat-the-last-command-type/m-p/3650178#M803477</link>
      <description>you can also add ksh -o vi to /home/&lt;USER&gt;/.profile&lt;BR /&gt;&lt;BR /&gt;so every time you login history is set&lt;BR /&gt;&lt;BR /&gt;HTH&lt;/USER&gt;</description>
      <pubDate>Sat, 15 Oct 2005 15:19:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/re-repeat-the-last-command-type/m-p/3650178#M803477</guid>
      <dc:creator>lawrenzo</dc:creator>
      <dc:date>2005-10-15T15:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: RE : Repeat the last command type</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/re-repeat-the-last-command-type/m-p/3650179#M803478</link>
      <description>If you're using a korn shell (as advised in previous replies) type the word history to see the last ten commands. The output will be similar to this:&lt;BR /&gt;&lt;BR /&gt;121 cd&lt;BR /&gt;122 ll&lt;BR /&gt;&lt;BR /&gt;(ten lines in all).&lt;BR /&gt;&lt;BR /&gt;r 121 will repeat command number 121 (cd).&lt;BR /&gt;&lt;BR /&gt;If you want more than 10 lines, type history -n, where n is the number of commands you want to see: e.g. history -20 will produce 20 lines.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Mon, 17 Oct 2005 02:55:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/re-repeat-the-last-command-type/m-p/3650179#M803478</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-10-17T02:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: RE : Repeat the last command type</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/re-repeat-the-last-command-type/m-p/3650180#M803479</link>
      <description>You have to setup history support with shell. Try to add in /etc/profile as,&lt;BR /&gt;&lt;BR /&gt;set -o vi&lt;BR /&gt;export HISTFILE=$HOME/.sh_history&lt;BR /&gt;export HISTSIZE=2500&lt;BR /&gt;&lt;BR /&gt;and save it.&lt;BR /&gt;&lt;BR /&gt;For future login, it will give you history of commands.&lt;BR /&gt;&lt;BR /&gt;To get prev. command then,&lt;BR /&gt;&lt;BR /&gt; a) Esc k &lt;ENTER&gt;&lt;BR /&gt; b) Esc / &lt;ENTER&gt;&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;/ENTER&gt;&lt;/ENTER&gt;</description>
      <pubDate>Mon, 17 Oct 2005 03:02:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/re-repeat-the-last-command-type/m-p/3650180#M803479</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-10-17T03:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: RE : Repeat the last command type</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/re-repeat-the-last-command-type/m-p/3650181#M803480</link>
      <description>In some shell the command:&lt;BR /&gt;&lt;BR /&gt;!!&lt;BR /&gt;&lt;BR /&gt;repeats the last command you typed.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bob</description>
      <pubDate>Mon, 17 Oct 2005 03:45:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/re-repeat-the-last-command-type/m-p/3650181#M803480</guid>
      <dc:creator>B. Hulst</dc:creator>
      <dc:date>2005-10-17T03:45:55Z</dc:date>
    </item>
  </channel>
</rss>

