<?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: shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808171#M779976</link>
    <description>khilari,&lt;BR /&gt;&lt;BR /&gt;If you enter a bogus command into some shells, the error they return is prefaced with the name of the shell:&lt;BR /&gt;&lt;BR /&gt;# garbage&lt;BR /&gt;sh: garbage:  not found.&lt;BR /&gt;&lt;BR /&gt;However, 'echo $SHELL' is far more reliable.&lt;BR /&gt;&lt;BR /&gt;Regarding the missing commands, either:&lt;BR /&gt;&lt;BR /&gt;1) Your $PATH does not include the directory containing the system admin commands, &lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;2) The binaries for the commands do not exist on your system.&lt;BR /&gt;&lt;BR /&gt;To determine which is the case, choose a command from your book and run:&lt;BR /&gt;&lt;BR /&gt;find / -type f -name 'your_command_here' -exec dirname {} \;&lt;BR /&gt;&lt;BR /&gt;If you get any results, you are most likely in case #1.  Repeat the find with another command or two, and then add the result to PATH in ~/.profile.&lt;BR /&gt;&lt;BR /&gt;If you do not get any results, repeat the find with another command.  If you still do not get any results, the binaries are not on your system, or you do not have permission to see them.  The latter is not the case if you do the find as root.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
    <pubDate>Mon, 19 Jun 2006 14:24:28 GMT</pubDate>
    <dc:creator>spex</dc:creator>
    <dc:date>2006-06-19T14:24:28Z</dc:date>
    <item>
      <title>shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808165#M779970</link>
      <description>Hi people, i wanted to know as to how do i know which shell i am in (korne,bourne). Furthermore, i type in some commands from system admin books but they dont work, y is that.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 19 Jun 2006 13:33:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808165#M779970</guid>
      <dc:creator>khilari</dc:creator>
      <dc:date>2006-06-19T13:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808166#M779971</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;# echo $SHELL&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Mon, 19 Jun 2006 13:35:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808166#M779971</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2006-06-19T13:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808167#M779972</link>
      <description>Shalom khilari,&lt;BR /&gt;&lt;BR /&gt;echo $SHELL&lt;BR /&gt;&lt;BR /&gt;That tells you the shell&lt;BR /&gt;&lt;BR /&gt;Take the output of that and used the what command.&lt;BR /&gt;&lt;BR /&gt;what /bin/sh&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 19 Jun 2006 13:36:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808167#M779972</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-06-19T13:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808168#M779973</link>
      <description>echo $SHELL will tell you the current shell you're using and your PATH variable (echo $PATH) isn't setup correctly for the sysadmin commands to work.</description>
      <pubDate>Mon, 19 Jun 2006 13:48:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808168#M779973</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-06-19T13:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808169#M779974</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Note carefully that the HP-UX standard shell is the POSIX shell.&lt;BR /&gt;&lt;BR /&gt;For root, this is the statically linked executable: '/sbin/sh'.&lt;BR /&gt;&lt;BR /&gt;For non-root users, the dynamically linked version provides a smaller memory footprint and is found in '/usr/bin/sh'.&lt;BR /&gt;&lt;BR /&gt;Do *not* change root's shell.  To do so means your system will not boot!  Remember that '/usr' isn't mounted in single-user mode and/or during the early startup scripts.&lt;BR /&gt;&lt;BR /&gt;The old Bourne shell (which is virtually useless) resides in '/usr/old/bin').&lt;BR /&gt;&lt;BR /&gt;The POSIX shell is a Korn ('ksh') variation conforming to Posix standards.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 19 Jun 2006 14:02:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808169#M779974</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-06-19T14:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808170#M779975</link>
      <description>Note that unlike most other Unix systems, HP-UX has a POSIX shell called /usr/bin/sh. This is not the Bourne shell (a very limited and deprecated shell) like other systems. The Bourne shell in HP-UX is found in /usr/old/bin/sh. You can also see the shell (and other details) with the command:&lt;BR /&gt; &lt;BR /&gt;finger $(id -un)</description>
      <pubDate>Mon, 19 Jun 2006 14:03:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808170#M779975</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-06-19T14:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808171#M779976</link>
      <description>khilari,&lt;BR /&gt;&lt;BR /&gt;If you enter a bogus command into some shells, the error they return is prefaced with the name of the shell:&lt;BR /&gt;&lt;BR /&gt;# garbage&lt;BR /&gt;sh: garbage:  not found.&lt;BR /&gt;&lt;BR /&gt;However, 'echo $SHELL' is far more reliable.&lt;BR /&gt;&lt;BR /&gt;Regarding the missing commands, either:&lt;BR /&gt;&lt;BR /&gt;1) Your $PATH does not include the directory containing the system admin commands, &lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;2) The binaries for the commands do not exist on your system.&lt;BR /&gt;&lt;BR /&gt;To determine which is the case, choose a command from your book and run:&lt;BR /&gt;&lt;BR /&gt;find / -type f -name 'your_command_here' -exec dirname {} \;&lt;BR /&gt;&lt;BR /&gt;If you get any results, you are most likely in case #1.  Repeat the find with another command or two, and then add the result to PATH in ~/.profile.&lt;BR /&gt;&lt;BR /&gt;If you do not get any results, repeat the find with another command.  If you still do not get any results, the binaries are not on your system, or you do not have permission to see them.  The latter is not the case if you do the find as root.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Mon, 19 Jun 2006 14:24:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808171#M779976</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-06-19T14:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808172#M779977</link>
      <description>Hi khilari,&lt;BR /&gt;&lt;BR /&gt;$ env&lt;BR /&gt;&lt;BR /&gt;rgs,&lt;BR /&gt;&lt;BR /&gt;ran</description>
      <pubDate>Wed, 21 Jun 2006 06:51:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808172#M779977</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2006-06-21T06:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808173#M779978</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;i'm not ok with you.&lt;BR /&gt;my shell is bash and when i do "echo $SHELL" the value /bin/sh is returned, so, SHELL var is not the shell i use.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Cheers,&lt;BR /&gt;CÃ©drick Gaillard</description>
      <pubDate>Wed, 21 Jun 2006 07:21:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808173#M779978</guid>
      <dc:creator>totoperdu</dc:creator>
      <dc:date>2006-06-21T07:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808174#M779979</link>
      <description>As been said by everyone to find out shell use echo $SHELL or even can just type ps [without any arguments] and that will list the shell you are using.&lt;BR /&gt;As far as some system admin command not working - the reason could be either the PATH is not set or the if the command is related to any package then that software package may not be installed on your system.&lt;BR /&gt;When running any command you can check if the shell will find the command [If PATH has been set] using which&lt;BR /&gt;which ps [ If found it will show the full path of the command ]&lt;BR /&gt;/usr/bin/ps&lt;BR /&gt;&lt;BR /&gt;which xyz&lt;BR /&gt;If not found it will show&lt;BR /&gt;no xyz in /usr/sbin /usr/bin /opt/ansic/bin  ....&lt;BR /&gt;Which means since PATH variable does not include the directory where this command is located, shell cannot find it.&lt;BR /&gt;&lt;BR /&gt;Also you may tell us which command you are trying and also tell us the output of echo $PATH if you need more help on this.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
      <pubDate>Wed, 21 Jun 2006 07:22:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808174#M779979</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-06-21T07:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808175#M779980</link>
      <description>Hey,&lt;BR /&gt;&lt;BR /&gt;Actually, I have to disagree w/just about everyone... &lt;BR /&gt;&lt;BR /&gt;The standard answer "echo $SHELL" will tell you what shell you logged in as, not necessarily what shell you're currently using:&lt;BR /&gt;&lt;BR /&gt;To wit:&lt;BR /&gt;&lt;BR /&gt;$ grep root /etc/passwd&lt;BR /&gt;root:x:0:3::/root:/sbin/sh&lt;BR /&gt;&lt;BR /&gt;$ sudo su -&lt;BR /&gt;Password:xxx&lt;BR /&gt;&lt;BR /&gt;# echo $SHELL&lt;BR /&gt;/sbin/sh&lt;BR /&gt;&lt;BR /&gt;# /bin/ksh -o vi&lt;BR /&gt;# echo $SHELL&lt;BR /&gt;/sbin/sh&lt;BR /&gt;# echo $0&lt;BR /&gt;/bin/ksh&lt;BR /&gt;&lt;BR /&gt;So, "echo $0" is the correct answer.  $SHELL is an environment variable that gets set during the login process.  If you change shells anywhere in the process, $SHELL no longer contains the correct information.&lt;BR /&gt;&lt;BR /&gt;HTH;&lt;BR /&gt;&lt;BR /&gt;Doug</description>
      <pubDate>Wed, 21 Jun 2006 07:31:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808175#M779980</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2006-06-21T07:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808176#M779981</link>
      <description>Thanks Doug for theses explanations ;)&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Cedrick Gaillard</description>
      <pubDate>Wed, 21 Jun 2006 09:03:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell/m-p/3808176#M779981</guid>
      <dc:creator>totoperdu</dc:creator>
      <dc:date>2006-06-21T09:03:40Z</dc:date>
    </item>
  </channel>
</rss>

