LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Commands have stopped working

[ILUG] Commands have stopped working

Gavin McCullagh ilug_gmc at fiachra.ucd.ie
Tue Jan 6 13:09:53 GMT 2004


On Tue, 06 Jan 2004, Conor_D_Wynne at Dell.com wrote:

> Doesn't mean that it wont work though, the PATH that is.
> 
> vi it instead.
> 
> or simply test it first ;--)
> 
> so:
> 
> export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/local/bin
> And try a command, if successful, then edit the file yerself.

well, you'll have to either restart bash or have it re-read your .bashrc.

While this is a perhaps a temporary solution to your problem, it's a fairly
crap one.  If root's path is still correct then the chances are that gets
set in /etc/profile for all users.  Then some one of your user config files
(probably ~/.bashrc or ~/.bash_profile etc) is mangling it.  If you add a
line to fix this, it'll only work if that line comes after the mangling and
you'll still be left with a rather silly situation where each time it
starts off good gets knackered and reset again.  This renders useless the
/etc/profile.

It'd be better in the long run to find all mentions of PATH in your home
dir dotfiles, figure out which one is mangling the PATH and fix the line.
Of course if you use this solution to get a working path initially fair
enough.

Gavin




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell