the reason I was doing the vim method is I don't know how to edit root files. none of methods i saw worked. Will you say how? Since terminal not working i have to learn.
vim .bashrc
press i to enter insert mode
append this:
export PATH= "$HOME/.local/bin:$PATH"
esc to enter cmdmode
save it:
:w
exit terminal
check etc/bash.bashrc , the updates are not there. which file was I editing? when I search "bashrc" in home, only that file comes up.
reboot
now terminal isnt working at all.
bash: export: `/home/k/.local/bin:/home/k/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin': not a valid identifier
Thanks folks