<?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: alias in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/alias/m-p/4200934#M324689</link>
    <description>Hi Navin,&lt;BR /&gt;&lt;BR /&gt;For bash shell for the user, you have to put alias commands in .bashrc in the home dir of the user.&lt;BR /&gt;&lt;BR /&gt;vi /home/user/.bashrc&lt;BR /&gt;alias ll='ls -l'            &lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
    <pubDate>Tue, 20 May 2008 08:55:21 GMT</pubDate>
    <dc:creator>Rasheed Tamton</dc:creator>
    <dc:date>2008-05-20T08:55:21Z</dc:date>
    <item>
      <title>alias</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias/m-p/4200932#M324687</link>
      <description>Hello All,&lt;BR /&gt;I have to set up an alias for the command ,user has sh as login shell and few times he changes to bash and then execute the command which i'm trying to setup alias.&lt;BR /&gt;But it is not stable .Means it works if i do su - user. But for user it works until the session closes.Please let me know how can i make this as permanent for the user as well as system wide so that the alias will be there permanently &lt;BR /&gt;thanks much</description>
      <pubDate>Mon, 19 May 2008 20:43:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias/m-p/4200932#M324687</guid>
      <dc:creator>navin</dc:creator>
      <dc:date>2008-05-19T20:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: alias</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias/m-p/4200933#M324688</link>
      <description>Aliases are not inherited from the parent process to its children. If your user switches from sh to bash, the new bash shell will start as "interactive non-login shell", which means it doesn't read /etc/profile nor ~/.profile. Instead, it reads /etc/bash.bashrc and ~/.bashrc.&lt;BR /&gt;&lt;BR /&gt;The exported environment variables are inherited from the parent shell, so they are not a problem - but the aliases will be gone.&lt;BR /&gt;&lt;BR /&gt;Read the "INVOCATION" chapter in the man page of your bash shell to understand the process.&lt;BR /&gt;&lt;BR /&gt;To get your alias to work, you must define it so that both login and non-login shells will read the definition. That may mean setting it in two places: /etc/profile (for login shells, both sh and bash) and /etc/bash.bashrc (for non-login bash).&lt;BR /&gt;&lt;BR /&gt;If your /etc/bash.bashrc is fully POSIX sh compatible (=contains no bash-specific extensions), you might avoid duplication by defining the aliases in /etc/bash.bashrc only and making /etc/profile read that file by adding this to /etc/profile:&lt;BR /&gt;  . /etc/bash.bashrc&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Mon, 19 May 2008 23:41:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias/m-p/4200933#M324688</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-05-19T23:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: alias</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias/m-p/4200934#M324689</link>
      <description>Hi Navin,&lt;BR /&gt;&lt;BR /&gt;For bash shell for the user, you have to put alias commands in .bashrc in the home dir of the user.&lt;BR /&gt;&lt;BR /&gt;vi /home/user/.bashrc&lt;BR /&gt;alias ll='ls -l'            &lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Tue, 20 May 2008 08:55:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias/m-p/4200934#M324689</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2008-05-20T08:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: alias</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias/m-p/4200935#M324690</link>
      <description>&amp;gt;I have to set up an alias for the command&lt;BR /&gt;&lt;BR /&gt;It might be easier to use a script in another PATH for that command.&lt;BR /&gt;You can also use functions that are found in FPATH.</description>
      <pubDate>Tue, 20 May 2008 09:06:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias/m-p/4200935#M324690</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-05-20T09:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: alias</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/alias/m-p/4200936#M324691</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would create a seperate file containing aliases and source that from the different places needed, e.g. use&lt;BR /&gt;/etc/aliases.local&lt;BR /&gt;and then in /etc/profile, and so on:&lt;BR /&gt;...&lt;BR /&gt;# include aliases&lt;BR /&gt;[ -s /etc/aliases.local ] &amp;amp;&amp;amp; . /etc/aliases.local&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Tue, 20 May 2008 13:42:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/alias/m-p/4200936#M324691</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2008-05-20T13:42:25Z</dc:date>
    </item>
  </channel>
</rss>

