0

I edited the .profile file to add a new PATH. I believe I set it wrong such that most commands become unavailable. Since I can't use ls or vi commands to edit .profile again, any idea how I can correct the error? Thanks!

3 Answers 3

3

This seems more like a superuser.com question. Anyway, I would try to fix it by using the full path of vi to edit your .profile.

/usr/bin/vi /home/username/.profile
2

You can search for vi executable and run it directly. It is usually /usr/bin/vi

0

You can also rename the .profile and relogon to get defaults back.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .