<?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: no command is working in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/no-command-is-working/m-p/6733336#M497052</link>
    <description>&lt;P&gt;You should always be able to run commands be specifying the full path to the command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A lot of commands that you regularly use are stored in the /usr/bin directory. &amp;nbsp;So to run a command like 'vi' you would do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# /usr/bin/vi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To edit your /etc/PATH file again do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# /usr/bin/vi /etc/PATH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and undo any changes you made yesterday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will then likely have to login again and make sure your path is working. &amp;nbsp;Do NOT log out of your current session until you are sure you can login successfully again.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Apr 2015 13:42:20 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2015-04-16T13:42:20Z</dc:date>
    <item>
      <title>no command is working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-command-is-working/m-p/6733173#M497050</link>
      <description>&lt;P&gt;on my quest to fingdthe right PATH command on the right file i probably made the wrong change.&lt;/P&gt;
&lt;P&gt;and now the situation is that no command is working beside "pwd" and "cd"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you help me fix this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. This thread has been moved&amp;nbsp;from HP-UX &amp;gt; System Administration to HP-UX &amp;gt; languages. - Hp Forum moderator&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 02:40:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-command-is-working/m-p/6733173#M497050</guid>
      <dc:creator>Guy Tsudkevich</dc:creator>
      <dc:date>2015-04-17T02:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: no command is working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-command-is-working/m-p/6733221#M497051</link>
      <description>&lt;P&gt;I remember you changed PATH variable yesterday to get bash working. How did you do this?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2015 09:50:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-command-is-working/m-p/6733221#M497051</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2015-04-16T09:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: no command is working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-command-is-working/m-p/6733336#M497052</link>
      <description>&lt;P&gt;You should always be able to run commands be specifying the full path to the command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A lot of commands that you regularly use are stored in the /usr/bin directory. &amp;nbsp;So to run a command like 'vi' you would do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# /usr/bin/vi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To edit your /etc/PATH file again do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# /usr/bin/vi /etc/PATH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and undo any changes you made yesterday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will then likely have to login again and make sure your path is working. &amp;nbsp;Do NOT log out of your current session until you are sure you can login successfully again.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2015 13:42:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-command-is-working/m-p/6733336#M497052</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2015-04-16T13:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: no command is working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-command-is-working/m-p/6733489#M497053</link>
      <description>&lt;P&gt;&amp;gt;no command is working beside "pwd" and "cd"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are shell builtins, so they will always work.&lt;/P&gt;&lt;P&gt;You need to change PATH:&lt;/P&gt;&lt;P&gt;export PATH=/usr/bin:$PATH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then figure whether you want to modify /etc/PATH or each user's ~/.profile.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2015 19:35:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-command-is-working/m-p/6733489#M497053</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2015-04-16T19:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: no command is working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-command-is-working/m-p/6733830#M497054</link>
      <description>&lt;P&gt;If you typed this command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PATH=/usr/local/bin&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to get &lt;STRONG&gt;bash&lt;/STRONG&gt; to run, now the pathnames for other commands have been removed and you must use the full path for everything else. That's why none of the usual commands seemed to have disappeared. The &lt;STRONG&gt;PATH&lt;/STRONG&gt; variable (just like DOS/Windows) is a helper to save you from having to type the full pathname for every command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The correct way to add a new path is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PATH=$PATH:/usr/local/bin&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you type the first command above and did not store this line in your profile, log out and and back in again and your PATH will be restored and the other commands will be found again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it was stored in &lt;STRONG&gt;/etc/profile&lt;/STRONG&gt; or &lt;STRONG&gt;.profile&lt;/STRONG&gt;, then use &lt;STRONG&gt;/usr/bin/vi&lt;/STRONG&gt; to edit the file to the correct string. Then log out and back in again to restore your &lt;STRONG&gt;PATH&lt;/STRONG&gt; variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you edited &lt;STRONG&gt;/etc/PATH&lt;/STRONG&gt; and you did not keep a copy of the old file, you'll need to restore the old file from your most recent backup.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 13:50:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-command-is-working/m-p/6733830#M497054</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2015-04-17T13:50:40Z</dc:date>
    </item>
  </channel>
</rss>

