Re: Fwd:How can i change my path at /etc/profile??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 25, 2003 at 04:45:42PM +0200, Ioannis Psaras wrote:
> On the logon screen i tried <Ctrl>+<Alt>+F1 to log on as a user.From that
> position i tried to run the vi editor in order to give the right path, but
> vi: command not found.

It means that vi is not in your path anymore.  If you can get a shell at
all, simply reset the path as follows:
$ export PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin

Alternatively, you can invoke vi directly with:
$ /usr/bin/vim /etc/profile
Of course, you could simply restore your profile from your editor backup
if you only made the one change and you have backups enabled:
$ /bin/mv /etc/profile~ /etc/profile

-- 
Ed Wilts, Mounds View, MN, USA
mailto:ewilts@xxxxxxxxxx
Member #1, Red Hat Community Ambassador Program


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux