[ILUG] Commands have stopped working

John Allen john.allen at online.ie
Tue Jan 6 13:55:33 GMT 2004


On Tuesday 06 January 2004 13:24, Darragh wrote:
> echo 'export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/local/bin' > .bashrc
>
> Ok, I've got slightly further now.  I edited the .bashrc file with the
> right path and that has solved most of it.  However the command startx
> doesn't work.  I expect that's just a matter of finding where that command

Find the package that /etc/profile belongs to
then do
# rpm -e --nodeps the-name-of-the-package
# rpm -Uvh the-name-of-the-package

This will get you the default /etc/profile back

> is and adding it to the path, however I'm getting a few lines of errors
> when I log in which may help to diagnose what's causing this.
>
> -bash: id: command not found
> -bash: id: command not found
> -bash: id: command not found
> -bash: [: too many arguements
> -bash: put: command not found
> -bash: put: command not found
> -bash: wc: command not found
> -bash: [: : integer expression expected
>
> Thanks

-- 
John Allen,                          Email:  mailto:john.allen at dublinux.net
MandrakeClub Silver Member.



More information about the ILUG mailing list