linux questions and ANSWERS PLEASE!
Alex accidentally deletes his PATH variable.what are some of the problems he may soon encounter and explain the reasons for these problems. How could he easily return PATH to its original value?
|
Smacks of homework ... did you read the accompanying course
material? What steps did you take (other than asking others) to come up with a solution? Cheers, Tink |
PATH is a variable that tells your shell which directories to search for your programs from your commands that you have typed in and if you delete it then you will have quite a headache..
|
How about re-install?
Quote:
My first thought is re-install. Save your data and re-install your system. //Leopold |
Quote:
in the spirit of LQ to mock people asking for help... Cheers, Tink |
Quote:
|
Clearing out a misunderstand
Quote:
I am sorry that you misunderstand my intention. I had no intention of mocking the person whom is seeking help here. I was helping as I would do if I would to come up with the same problem. As the question was, it was a one time problem with, in my mind, the easiest solution is re-installing the system. I have done so many times when I think I missed something in my system. Searching for a solution is time consuming and re-install is easy and pretty much self-going. //Leopold |
Umm....why not set the variable back to something reasonable like:
Code:
PATH=/usr/bin:/usr/sbin:/usr/local/bin:/bin ; export PATH Code:
PATH=$PATH:/path/to/new/command ; export PATH |
@leopoldb
Although I haven't tried it, to my knowledge a reboot should do the trick to get it back. It should be my option before re-installing ;) |
Quote:
This is clearly a homework question. The OP did not even rephrase the question, it is copied verbatim from the text book. The title of the thread is badly chosen, not related to the question. The OP DEMANDS an answer: linux questions and ANSWERS PLEASE! I think with all this shown disrespect for LQ and its members, the answer by leopoldb was midly entertaining and completely justified. Don't forget that the OP does not really have this problem, it is a text book question, and I doubt whether the OP has ever be close to a Linux machine. Sorry for being pedantic :( jlinkels |
Quote:
and I believe this thread should be closed, and the OP warned about not posting homework questions - at least, without making its own studying first. |
Quote:
|
Quote:
|
I stand corrected
Quote:
Yes, of course. I assumed that OP had tried that before he post here. But you are right and I stand corrected. Remember all newbie out there, if a problem comes along, reboot your system! :) //Leopold |
I do not understand
Quote:
I do not understand what you mean:redface:. Can you please elaborate what you mean? //Leopold |
All times are GMT -5. The time now is 07:39 PM. |