Deleted path variable how to return
Experimenting with shell variables, accidentally deleted the path variable how could I return to the original path value. What kinds of problems will I have if I don't have a path variable.
|
Edit /etc/profile
Put in something like Code:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" If you don't have a PATH variable, the shell doesn't know where to look for commands. http://www.cs.purdue.edu/homes/cs348/unix_path.html |
Hi,
if you don't have $PATH in your env variable, the shell won't be able to find the exact location of any command you enter at the command prompt. To get a lost $PATH var, you can simply copy another user's $PATH to your ~/.bash_profile, assuming you use bash shell. |
Did you do something like this?
Code:
$ PATH= |
All times are GMT -5. The time now is 03:04 PM. |