Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@progzilla well OK, you wrote that, but since it's not working, what does "echo $PATH" say?
-
Why do you edit .profile with sudo? You shouldn't, it's your user's. Does ls work after this last screenshot?
-
Can you try removing /bin from the path variable. On my Linux machine, I am seeing that /bin is a symbolic link to /usr/bin.
Also, can you check the output of the command 'which ls'? I got below output
alias ls='ls --color=auto'
/usr/bin/ls -
This might be nothing, but in my .bash_profile, there is an export PATH statement at the end. Probably you can try that.
-
blegh698y@progzilla make sure .profile have read and write access for your user, re-edit it and move/copy that PATH line outside if condition
-
Do edit it without sudo, I'm not sure it edits the right file if you do it as superuser.
Put an 'echo "updating path"' right where you do it.
And do add "export" before setting the path.
Then start a new bash. Do you see the message? -
pchater5978y@progzilla /bin should be first then /usr/bin then anything after that. The problem is that the bin isn't being called first. It should rectify.
Am so tired of this..someone help..hv been settig temporary env variable each time i open a new terminal..i hv editted .profile and .bashrc yet no way..i want a global permanent setting..pls help!!!
undefined