<?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: What kind of Shell I'm using in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565055#M919785</link>
    <description>Hello Lalo,&lt;BR /&gt;&lt;BR /&gt;first: if you type "echo $0" you will get the name of the&lt;BR /&gt;   shell process running (with a leading dash, perhaps ;-)&lt;BR /&gt;&lt;BR /&gt;   case $0 in &lt;BR /&gt;          -sh|sh) echo POSIX-shell ;;&lt;BR /&gt;          -ksh|ksh) echo Korn-shell ;;&lt;BR /&gt;          -csh|csh) echo C-shell ;;&lt;BR /&gt;          -rsh|rsh) echo restricted POSIX-shell ;;&lt;BR /&gt;          -dtksh|dtksh) echo DeskTop Korn-shell ;;&lt;BR /&gt;          *') some other shell... ;;&lt;BR /&gt;   esac&lt;BR /&gt;&lt;BR /&gt;second: if the name of your process is "sh" it still could&lt;BR /&gt;   be the old Borune-shell (/usr/old/bin/sh), but this is&lt;BR /&gt;   not very likely...&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;   Wodisch</description>
    <pubDate>Fri, 17 Aug 2001 19:40:12 GMT</pubDate>
    <dc:creator>Wodisch</dc:creator>
    <dc:date>2001-08-17T19:40:12Z</dc:date>
    <item>
      <title>What kind of Shell I'm using</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565046#M919776</link>
      <description>Hi, All masters&lt;BR /&gt;&lt;BR /&gt; I want to know what kind of shell I'm using after I login my system with prompt '#'. How can I do?&lt;BR /&gt;&lt;BR /&gt; Thanks in advance</description>
      <pubDate>Tue, 14 Aug 2001 08:33:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565046#M919776</guid>
      <dc:creator>Lalo_Weng</dc:creator>
      <dc:date>2001-08-14T08:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: What kind of Shell I'm using</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565047#M919777</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;There are two basic ways to find out.&lt;BR /&gt;&lt;BR /&gt;# grep -i userid /etc/passwd (substitute your userid and where it states /usr/bin/ksh as the last part of the line)&lt;BR /&gt;or&lt;BR /&gt;# ps (your shell will show as 'sh' or 'ksh' as one of the active processes from the output)&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;-Michael</description>
      <pubDate>Tue, 14 Aug 2001 08:40:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565047#M919777</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-08-14T08:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: What kind of Shell I'm using</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565048#M919778</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can type&lt;BR /&gt;&lt;BR /&gt; echo $SHELL&lt;BR /&gt;&lt;BR /&gt;at the prompt to determine what kind of shell you are currently using. You can use the 'chsh' command to modify it temporarily.&lt;BR /&gt;For permanent modification you have to modify the .profile file with the appropriate information concerning the shell type you'd like to use.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Emanuele</description>
      <pubDate>Tue, 14 Aug 2001 09:00:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565048#M919778</guid>
      <dc:creator>Emanuele Zanotti</dc:creator>
      <dc:date>2001-08-14T09:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: What kind of Shell I'm using</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565049#M919779</link>
      <description>Hi Lalo,&lt;BR /&gt;&lt;BR /&gt;In /etc/passwd, there is one line per username. Columns, in each line, are field separator, the end field show you what kind of shell a giving user is using.&lt;BR /&gt;&lt;BR /&gt;Sam-&amp;gt;Accounts for Users and Groups -&amp;gt;Users&lt;BR /&gt;&lt;BR /&gt;Hilight an antry -&amp;gt; Menu Actions -&amp;gt; Modify&lt;BR /&gt;&lt;BR /&gt;See the "Star-Up Program" which mention the script a given user is using.&lt;BR /&gt;&lt;BR /&gt;Don't forget to cancel the modification. It was just for showing the startup script.&lt;BR /&gt;&lt;BR /&gt;Magdi&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Aug 2001 09:07:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565049#M919779</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2001-08-14T09:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: What kind of Shell I'm using</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565050#M919780</link>
      <description>Hi,&lt;BR /&gt;#echo $SHELL gives u the which shell u r using</description>
      <pubDate>Tue, 14 Aug 2001 11:39:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565050#M919780</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2001-08-14T11:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: What kind of Shell I'm using</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565051#M919781</link>
      <description>if you type "env" at the command prompt, you will get all sorts of useful info, including:&lt;BR /&gt;&lt;BR /&gt;SHELL=/sbin/sh&lt;BR /&gt;&lt;BR /&gt;which is the POSIX shell.</description>
      <pubDate>Tue, 14 Aug 2001 13:18:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565051#M919781</guid>
      <dc:creator>Ron Irving</dc:creator>
      <dc:date>2001-08-14T13:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: What kind of Shell I'm using</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565052#M919782</link>
      <description>If you are logging in as root, which is what the # denotes, then  you should be using /sbin/sh.  You should NEVER use any shell other than that for root as it can cause problems when booting the machine or trying to bring the machine up in single-user mode.</description>
      <pubDate>Tue, 14 Aug 2001 14:12:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565052#M919782</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-08-14T14:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: What kind of Shell I'm using</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565053#M919783</link>
      <description>The environment $SHELL tells you what shell&lt;BR /&gt;you get when you log in, but it doesn't get&lt;BR /&gt;updated dynamically.  That is, after you log into&lt;BR /&gt;your normal shell (say, /usr/bin/sh), if you then&lt;BR /&gt;start ksh or csh or whatever, $SHELL will&lt;BR /&gt;still say /usr/bin/sh.&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Aug 2001 16:50:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565053#M919783</guid>
      <dc:creator>Gregory Fruth</dc:creator>
      <dc:date>2001-08-14T16:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: What kind of Shell I'm using</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565054#M919784</link>
      <description>Hi lalo,&lt;BR /&gt;if you are at prompt # you are most probabley a root and using /bin/sh shell.&lt;BR /&gt;#ps will give you what shell you are using&lt;BR /&gt;if you using nis&lt;BR /&gt;#ypcat passwd |grep username (and last part tells you your username)&lt;BR /&gt;if you are using local password file&lt;BR /&gt;#cat /etc/passwd |grep username   (will work)&lt;BR /&gt;&lt;BR /&gt;Sachin</description>
      <pubDate>Tue, 14 Aug 2001 16:54:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565054#M919784</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2001-08-14T16:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: What kind of Shell I'm using</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565055#M919785</link>
      <description>Hello Lalo,&lt;BR /&gt;&lt;BR /&gt;first: if you type "echo $0" you will get the name of the&lt;BR /&gt;   shell process running (with a leading dash, perhaps ;-)&lt;BR /&gt;&lt;BR /&gt;   case $0 in &lt;BR /&gt;          -sh|sh) echo POSIX-shell ;;&lt;BR /&gt;          -ksh|ksh) echo Korn-shell ;;&lt;BR /&gt;          -csh|csh) echo C-shell ;;&lt;BR /&gt;          -rsh|rsh) echo restricted POSIX-shell ;;&lt;BR /&gt;          -dtksh|dtksh) echo DeskTop Korn-shell ;;&lt;BR /&gt;          *') some other shell... ;;&lt;BR /&gt;   esac&lt;BR /&gt;&lt;BR /&gt;second: if the name of your process is "sh" it still could&lt;BR /&gt;   be the old Borune-shell (/usr/old/bin/sh), but this is&lt;BR /&gt;   not very likely...&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;   Wodisch</description>
      <pubDate>Fri, 17 Aug 2001 19:40:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-kind-of-shell-i-m-using/m-p/2565055#M919785</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-08-17T19:40:12Z</dc:date>
    </item>
  </channel>
</rss>

