<?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: ksh and command history in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056733#M742820</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;first check/list the command history via&lt;BR /&gt;fc -l&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
    <pubDate>Thu, 05 Jul 2007 15:29:52 GMT</pubDate>
    <dc:creator>Peter Nikitka</dc:creator>
    <dc:date>2007-07-05T15:29:52Z</dc:date>
    <item>
      <title>ksh and command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056730#M742817</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I am working on HPUX system. I access the system using my personal id and then I run sudo ksh to enter as a super user.&lt;BR /&gt;&lt;BR /&gt;I am facing one problem after running sudo. I am not able to run the previous command which I ran as a super user using short cut key k. Is it easy to fix this issue?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;PAdma&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jul 2007 14:43:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056730#M742817</guid>
      <dc:creator>Padma Asrani</dc:creator>
      <dc:date>2007-07-05T14:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: ksh and command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056731#M742818</link>
      <description>You need to be in vi mode for that and the syntax is &lt;ESC&gt;&lt;K&gt; on keyboard:&lt;BR /&gt;&lt;BR /&gt;# set -o vi&lt;/K&gt;&lt;/ESC&gt;</description>
      <pubDate>Thu, 05 Jul 2007 14:54:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056731#M742818</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-07-05T14:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: ksh and command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056732#M742819</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Thanks for the help but it doesn't work :-(&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Padma</description>
      <pubDate>Thu, 05 Jul 2007 14:56:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056732#M742819</guid>
      <dc:creator>Padma Asrani</dc:creator>
      <dc:date>2007-07-05T14:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: ksh and command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056733#M742820</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;first check/list the command history via&lt;BR /&gt;fc -l&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Thu, 05 Jul 2007 15:29:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056733#M742820</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-07-05T15:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: ksh and command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056734#M742821</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Here is the output&lt;BR /&gt;&lt;BR /&gt;fc -l&lt;BR /&gt;ksh: fc: no history file&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jul 2007 15:32:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056734#M742821</guid>
      <dc:creator>Padma Asrani</dc:creator>
      <dc:date>2007-07-05T15:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: ksh and command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056735#M742822</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The root '.profile' should also contain:&lt;BR /&gt;&lt;BR /&gt;# export HISTFILE=${HOME}/.sh_history&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 05 Jul 2007 15:36:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056735#M742822</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-07-05T15:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: ksh and command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056736#M742823</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I have echoed the $HISTFILE and it results&lt;BR /&gt;&lt;BR /&gt;/homes/indigo/padmaasr/.sh_history&lt;BR /&gt;&lt;BR /&gt;padmaasr@tthp49: ls -al /homes/indigo/padmaasr/.sh_history&lt;BR /&gt;-rwx------   1 root       sys          70932 Jul  5 14:56 /homes/indigo/padmaasr/.sh_history&lt;BR /&gt;&lt;BR /&gt;When I open the .sh_history file under my home directory it says permission denied. I have working as a super user and my id shows the following output.&lt;BR /&gt;&lt;BR /&gt;padmaasr@tthp49: id&lt;BR /&gt;uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users),111(security),299(opcgrp),555(www),711(nt)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Padma&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jul 2007 16:00:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056736#M742823</guid>
      <dc:creator>Padma Asrani</dc:creator>
      <dc:date>2007-07-05T16:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: ksh and command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056737#M742824</link>
      <description>I would not use the sudo to a shell, this will not give you the environment for the root user. You should rather use the command "sudo su -" or "sudo su - root" this would give you the correct environment.&lt;BR /&gt;&lt;BR /&gt;You could change the way of the history for root to match the individual user:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=901609&amp;amp;admit=-682735245+1183670098597+28353475" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=901609&amp;amp;admit=-682735245+1183670098597+28353475&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jul 2007 16:23:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056737#M742824</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2007-07-05T16:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: ksh and command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056738#M742825</link>
      <description>Thanks a lot to all</description>
      <pubDate>Thu, 05 Jul 2007 16:29:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056738#M742825</guid>
      <dc:creator>Padma Asrani</dc:creator>
      <dc:date>2007-07-05T16:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: ksh and command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056739#M742826</link>
      <description>I would never expect to share the history file from when I'm a normal user and then when I su.&lt;BR /&gt;&lt;BR /&gt;If I try, it gets either corrupted or it doesn't work because root has no privileges to write to my NFS home directory.&lt;BR /&gt;&lt;BR /&gt;So before I do, I typically reset HISTFILE:&lt;BR /&gt;$ HISTFILE=/tmp/.sh_history sudo ...</description>
      <pubDate>Fri, 06 Jul 2007 03:39:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-and-command-history/m-p/5056739#M742826</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-07-06T03:39:42Z</dc:date>
    </item>
  </channel>
</rss>

