<?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: .profile and .kshrc help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-and-kshrc-help/m-p/2608440#M35545</link>
    <description>Setting prompt in .profile:&lt;BR /&gt; PWD=`pwd`&lt;BR /&gt; HOST=`hostname`&lt;BR /&gt; PS1='$HOST:$PWD&amp;gt;'&lt;BR /&gt; export PS1 PWD HOST&lt;BR /&gt;  &lt;BR /&gt;Setting history&lt;BR /&gt;   set -o vi &lt;BR /&gt;   &lt;BR /&gt;Setting  umask&lt;BR /&gt;   umask 027&lt;BR /&gt;&lt;BR /&gt;Shutoff messaging&lt;BR /&gt;   mesg n&lt;BR /&gt;&lt;BR /&gt;Appending to PATH&lt;BR /&gt;   PATH=$PATH:xyz:xyz1&lt;BR /&gt;   export PATH&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;These are not 'cool' commands but dull and necessary ones ;-)&lt;BR /&gt;&lt;BR /&gt;-raj</description>
    <pubDate>Tue, 06 Nov 2001 19:59:13 GMT</pubDate>
    <dc:creator>Roger Baptiste</dc:creator>
    <dc:date>2001-11-06T19:59:13Z</dc:date>
    <item>
      <title>.profile and .kshrc help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-and-kshrc-help/m-p/2608438#M35543</link>
      <description>Good Day.&lt;BR /&gt;I'm building my first custom .profile and .kshrc and I was looking for some kool commands and what they do. for example, what do you do to set file completion in ksh, and kool stuff like that.&lt;BR /&gt;thx.&lt;BR /&gt;scott</description>
      <pubDate>Tue, 06 Nov 2001 19:22:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-and-kshrc-help/m-p/2608438#M35543</guid>
      <dc:creator>Scott_20</dc:creator>
      <dc:date>2001-11-06T19:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: .profile and .kshrc help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-and-kshrc-help/m-p/2608439#M35544</link>
      <description>Hi Scott,&lt;BR /&gt;&lt;BR /&gt;.profile and .kshrc options.&lt;BR /&gt;&lt;BR /&gt;I suppose you use the korn shell.&lt;BR /&gt;&lt;BR /&gt;you can use:&lt;BR /&gt;set -o vi # puts vi on at the command line (use &lt;ESC&gt;/&lt;STRING&gt; to search in history)&lt;BR /&gt;PS1=`uname -n`&amp;gt;"$PWD $" # to have machine name and dir name in prompt&lt;BR /&gt;&lt;BR /&gt;do not forget to export the variables.&lt;BR /&gt;&lt;BR /&gt;Hope this will get you started.&lt;BR /&gt;&lt;BR /&gt;Gideon &lt;BR /&gt;&lt;BR /&gt;&lt;/STRING&gt;&lt;/ESC&gt;</description>
      <pubDate>Tue, 06 Nov 2001 19:28:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-and-kshrc-help/m-p/2608439#M35544</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2001-11-06T19:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: .profile and .kshrc help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-and-kshrc-help/m-p/2608440#M35545</link>
      <description>Setting prompt in .profile:&lt;BR /&gt; PWD=`pwd`&lt;BR /&gt; HOST=`hostname`&lt;BR /&gt; PS1='$HOST:$PWD&amp;gt;'&lt;BR /&gt; export PS1 PWD HOST&lt;BR /&gt;  &lt;BR /&gt;Setting history&lt;BR /&gt;   set -o vi &lt;BR /&gt;   &lt;BR /&gt;Setting  umask&lt;BR /&gt;   umask 027&lt;BR /&gt;&lt;BR /&gt;Shutoff messaging&lt;BR /&gt;   mesg n&lt;BR /&gt;&lt;BR /&gt;Appending to PATH&lt;BR /&gt;   PATH=$PATH:xyz:xyz1&lt;BR /&gt;   export PATH&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;These are not 'cool' commands but dull and necessary ones ;-)&lt;BR /&gt;&lt;BR /&gt;-raj</description>
      <pubDate>Tue, 06 Nov 2001 19:59:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-and-kshrc-help/m-p/2608440#M35545</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-11-06T19:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: .profile and .kshrc help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile-and-kshrc-help/m-p/2608441#M35546</link>
      <description>Hi Scott:&lt;BR /&gt;&lt;BR /&gt;Have a look at the "Shells: User's Guide" for a discussion of shell features:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/B2355-90046/B2355-90046.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/B2355-90046/B2355-90046.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Remember that you *never* want to change the default root shell, as defined in /etc/passwd', to be other than the Posix (sh) shell: '/sbin/sh'.  Should you do this, you will end up with an unbootable system!&lt;BR /&gt;&lt;BR /&gt;Since the Posix shell is a superset of the Korn shell, as provided by HP, I see no reason to use 'ksh'.&lt;BR /&gt;&lt;BR /&gt;The 'vi' editor is set by default in the 'profile' provided in '/etc/skel/.profile' and file name completion (by pressing the ESC(ape) key twice) is part of the shell.&lt;BR /&gt;&lt;BR /&gt;For my own sanity (and protection) I place the following aliases in my profiles:&lt;BR /&gt;&lt;BR /&gt;alias cp='cp -ip'&lt;BR /&gt;alias mv='mv -i'&lt;BR /&gt;alias rm='rm -i'&lt;BR /&gt;alias rmdir='rmdir -i' &lt;BR /&gt;&lt;BR /&gt;For ease of system identification I change the PS1 prompt to be:&lt;BR /&gt;&lt;BR /&gt;PS1=`hostname`" # ";export PS1&lt;BR /&gt;&lt;BR /&gt;...and I set a secure 'umask':&lt;BR /&gt;&lt;BR /&gt;umask 027&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 06 Nov 2001 20:22:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile-and-kshrc-help/m-p/2608441#M35546</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-11-06T20:22:50Z</dc:date>
    </item>
  </channel>
</rss>

