<?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: Editor and shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/editor-and-shell/m-p/3700744#M796802</link>
    <description>Here is shell comparison document, &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://64.233.161.104/search?q=cache:IbSsx-c9Z6EJ:docs.rinet.ru:8080/UNIXs/ch13.htm+unix+shell+comparison&amp;amp;hl=en&amp;amp;client=firefox-a" target="_blank"&gt;http://64.233.161.104/search?q=cache:IbSsx-c9Z6EJ:docs.rinet.ru:8080/UNIXs/ch13.htm+unix+shell+comparison&amp;amp;hl=en&amp;amp;client=firefox-a&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;(Original site is down, so this is from Google's cache) &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
    <pubDate>Mon, 02 Jan 2006 06:01:17 GMT</pubDate>
    <dc:creator>Arunvijai_4</dc:creator>
    <dc:date>2006-01-02T06:01:17Z</dc:date>
    <item>
      <title>Editor and shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editor-and-shell/m-p/3700739#M796797</link>
      <description>Hi friend ..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      I have some queries regarding Unix OS.&lt;BR /&gt;&lt;BR /&gt;1)  what editor do one use?&lt;BR /&gt;&lt;BR /&gt;2)  what shell do one use?&lt;BR /&gt; &lt;BR /&gt;3) what is the best shell for root and why?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Mridul &lt;BR /&gt;3)</description>
      <pubDate>Mon, 02 Jan 2006 04:26:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editor-and-shell/m-p/3700739#M796797</guid>
      <dc:creator>Mridul Dutta</dc:creator>
      <dc:date>2006-01-02T04:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Editor and shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editor-and-shell/m-p/3700740#M796798</link>
      <description>Hi Mridul, &lt;BR /&gt;&lt;BR /&gt;Q 1) what editor do one use?&lt;BR /&gt;&lt;BR /&gt;My vote is for "vi" though some people prefer to use "emacs". "vi" is simple and easy to use than "emacs" (** Its my opinion**) &lt;BR /&gt;&lt;BR /&gt;Q 2) What shell do one use ? &lt;BR /&gt;&lt;BR /&gt;Borne shell by default (sh) or Korne shell (ksh) &lt;BR /&gt;&lt;BR /&gt;Q 3) what is the best shell for root and why?&lt;BR /&gt;&lt;BR /&gt;Borne shell is the best shell for root since you can use it in single user mode. It is compiled &amp;amp; linked statically.&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Mon, 02 Jan 2006 04:33:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editor-and-shell/m-p/3700740#M796798</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-01-02T04:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Editor and shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editor-and-shell/m-p/3700741#M796799</link>
      <description>In hpux,&lt;BR /&gt;&lt;BR /&gt;1)&lt;BR /&gt;&lt;BR /&gt;We can change the editor with EDITOR environment variable.&lt;BR /&gt;&lt;BR /&gt;echo $EDITOR shows your editor type. &lt;BR /&gt;&lt;BR /&gt;           EDITOR         If the value of this variable ends in emacs,&lt;BR /&gt;                          gmacs, or vi and the VISUAL variable is not set,&lt;BR /&gt;                          the corresponding option is turned on.&lt;BR /&gt;&lt;BR /&gt;2)&lt;BR /&gt;&lt;BR /&gt;By default, It is /bin/sh or /bin/ksh for hp-ux.&lt;BR /&gt;&lt;BR /&gt;You can view the shell type as,&lt;BR /&gt;&lt;BR /&gt;echo $SHELL&lt;BR /&gt;&lt;BR /&gt;3) Best shell is different usage purpose. Advanced one is BASH and KSH is ok.&lt;BR /&gt;&lt;BR /&gt;To change EDITOR and SHELL type you have to change /etc/profile or $HOME/.profile for permanent action.&lt;BR /&gt;&lt;BR /&gt;-Muthu&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jan 2006 04:37:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editor-and-shell/m-p/3700741#M796799</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-01-02T04:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Editor and shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editor-and-shell/m-p/3700742#M796800</link>
      <description>System 5 standard defines vi as the default editor for any UNIX os. Solaris uses C shell as default sometimes. &lt;BR /&gt;&lt;BR /&gt;BASH is the most advanced Shell as well as TCSH. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Mon, 02 Jan 2006 04:50:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editor-and-shell/m-p/3700742#M796800</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-01-02T04:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Editor and shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editor-and-shell/m-p/3700743#M796801</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1) vi is the best and most powerful editor for unix. The best thing about it is same functionality across all platforms.&lt;BR /&gt;&lt;BR /&gt;2) The default shell is different for various flavours of unix. For HPUx it is Posix, for Linux it is bash and so on.&lt;BR /&gt;&lt;BR /&gt;3) In my opinion the default OS shell should be used for root unless otherwise required as it provides you all functionalities required by root and if specific application requires other shell these should be run through particular applications. One major reason for this will be that when you are in sinngle user mode for system maintenance and only root is mounted, the access to other shells will probably not be available.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Mon, 02 Jan 2006 05:00:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editor-and-shell/m-p/3700743#M796801</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2006-01-02T05:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Editor and shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editor-and-shell/m-p/3700744#M796802</link>
      <description>Here is shell comparison document, &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://64.233.161.104/search?q=cache:IbSsx-c9Z6EJ:docs.rinet.ru:8080/UNIXs/ch13.htm+unix+shell+comparison&amp;amp;hl=en&amp;amp;client=firefox-a" target="_blank"&gt;http://64.233.161.104/search?q=cache:IbSsx-c9Z6EJ:docs.rinet.ru:8080/UNIXs/ch13.htm+unix+shell+comparison&amp;amp;hl=en&amp;amp;client=firefox-a&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;(Original site is down, so this is from Google's cache) &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Mon, 02 Jan 2006 06:01:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editor-and-shell/m-p/3700744#M796802</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-01-02T06:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Editor and shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editor-and-shell/m-p/3700745#M796803</link>
      <description>Hi Mridul:&lt;BR /&gt;&lt;BR /&gt;1.  I use 'vi' for its general applicability to any UNIX environment.  You can always find it available.&lt;BR /&gt;&lt;BR /&gt;2.  The POSIX shell is the default HP-UX shell.  It is considered a superset of the 'ksh' shell.&lt;BR /&gt;&lt;BR /&gt;3.  NEVER, NEVER, EVER, use anything but '/sbin/sh' for the root account as defined in '/etc/passwd'.   The standard shell for HP-UX users is '/usr/bin/sh', whereas the REQUIRED shell for root is /sbin/sh'. &lt;BR /&gt;&lt;BR /&gt;THe difference is that '/usr/bin/sh' has been compiled with dynamically linked libraries whereas '/sbin/sh' uses only static ones. &lt;BR /&gt;&lt;BR /&gt;NEVER change root's shell. The '/usr' filesystem isn't mounted during the early stages of system startup and any shell that needs needs the dynamically libraries therein would not be able to link to them. If you did this for the root user, you would find that your system was unbootable. &lt;BR /&gt;&lt;BR /&gt;Use the '/usr/bin/sh' for all other non-root users. Using the dynamically linked, shared libraries provides a better memory footprint than having the static structure of '/sbin/sh'. &lt;BR /&gt;&lt;BR /&gt;Both '/sbin/sh' and '/usr/bin/sh' are POSIX shells. The old Bourne shell lives as '/usr/old/bin/sh'. You also have '/usr/bin/ksh' which is Korn88 and '/usr/dt/bin/dtksh' which is Korn93. A '/usr/bin/csh' shell is also available. &lt;BR /&gt;&lt;BR /&gt;A very good site for shell scripts and tips is: &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.shelldorado.com/" target="_blank"&gt;http://www.shelldorado.com/&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;A guide to shells can be found here: &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-90046/index.html" target="_blank"&gt;http://docs.hp.com/en/B2355-90046/index.html&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;As far as the 'csh' shell is concerned, I'd avoid it.  The 'csh' shell is far inferior to the Posix ('usr/bin/sh'), 'ksh', and 'bash' shells.&lt;BR /&gt;&lt;BR /&gt;See here, for one discussion of why *not* to use 'csh':&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/" target="_blank"&gt;http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/&lt;/A&gt;&lt;BR /&gt;  &lt;BR /&gt;All shell scripts start with a declaration of the shell interpreter, clearly identifing the shell in use, like this: &lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh &lt;BR /&gt;#!/usr/bin/ksh &lt;BR /&gt;#!/usr/dt/bin/dtksh &lt;BR /&gt;&lt;BR /&gt;Regards! &lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 02 Jan 2006 09:02:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editor-and-shell/m-p/3700745#M796803</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-02T09:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Editor and shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/editor-and-shell/m-p/3700746#M796804</link>
      <description>Hi Mridul,&lt;BR /&gt;&lt;BR /&gt;In short here is the answer,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1) what editor do one use?&lt;BR /&gt;A: vi&lt;BR /&gt;&lt;BR /&gt;2) what shell do one use?&lt;BR /&gt;A: korn shell , or bourne shell&lt;BR /&gt;/usr/bin/ksh  or /usr/bin/sh &lt;BR /&gt;&lt;BR /&gt;3) what is the best shell for root and why?&lt;BR /&gt;hp-ux POSIX sheel provides many advantage and it can be used widely . /usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hp-ux supports the following shells:&lt;BR /&gt;------------------------------------&lt;BR /&gt;&lt;BR /&gt;The HP-UX operating system supports the following shells:&lt;BR /&gt;&lt;BR /&gt;           sh        POSIX-conforming command programming language and&lt;BR /&gt;                     command interpreter residing in file /usr/bin/sh.  Can&lt;BR /&gt;                     execute commands read from a terminal or a file.  This&lt;BR /&gt;                     shell conforms to current POSIX standards in effect at&lt;BR /&gt;                     the time the HP-UX system release was introduced, and&lt;BR /&gt;                     is similar to the Korn shell in many respects.  Similar&lt;BR /&gt;                     in many respects to the Korn shell, the POSIX shell&lt;BR /&gt;&lt;BR /&gt;                       contains a history mechanism, supports job control, and&lt;BR /&gt;                     provides various other useful features.&lt;BR /&gt;&lt;BR /&gt;           sh        Bourne-shell command programming language and commands&lt;BR /&gt;                     interpreter residing in file /usr/old/bin/sh.  Can&lt;BR /&gt;                     execute commands read from a terminal or a file.  This&lt;BR /&gt;                     shell lacks many features contained in the POSIX and&lt;BR /&gt;                     Korn shells.  The Bourne shell will be obsoleted.&lt;BR /&gt;                     Users are strongly encouraged to switch to the POSIX&lt;BR /&gt;                     shell.  The Bourne shell will still be available as&lt;BR /&gt;                     /usr/old/bin/sh, for those users have to use it.&lt;BR /&gt;&lt;BR /&gt;           ksh       Korn-shell command programming language and commands&lt;BR /&gt;                     interpreter residing in file /usr/bin/ksh.  Can execute&lt;BR /&gt;                     commands read from a terminal or a file.  This shell,&lt;BR /&gt;                     like the POSIX shell, contains a history mechanism,&lt;BR /&gt;                     supports job control, and provides various other useful&lt;BR /&gt;                     features.&lt;BR /&gt;&lt;BR /&gt;           csh       A command language interpreter that incorporates a&lt;BR /&gt;                     command history buffer, C-language-like syntax, and job&lt;BR /&gt;                     control facilities.&lt;BR /&gt;&lt;BR /&gt;           rsh       Restricted version of the POSIX or Bourne shell command&lt;BR /&gt;                     interpreter.  Sets up a login name and execution&lt;BR /&gt;                     environment whose capabilities are more controlled&lt;BR /&gt;                     (restricted) than normal user shells.&lt;BR /&gt;&lt;BR /&gt;           rksh      restricted version of the Korn-shell command&lt;BR /&gt;                     interpreter Sets up a login name and execution&lt;BR /&gt;                     environment whose capabilities are more controlled&lt;BR /&gt;                     (restricted) than normal user shells.&lt;BR /&gt;&lt;BR /&gt;           keysh     An extension of the standard Korn Shell that uses&lt;BR /&gt;                     hierarchical softkey menus and context-sensitive help.&lt;BR /&gt;&lt;BR /&gt;-----------------------------------------&lt;BR /&gt;&lt;BR /&gt;Further # man sh&lt;BR /&gt;&lt;BR /&gt;cheers,&lt;BR /&gt;Raj.</description>
      <pubDate>Mon, 02 Jan 2006 09:26:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/editor-and-shell/m-p/3700746#M796804</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2006-01-02T09:26:22Z</dc:date>
    </item>
  </channel>
</rss>

