Score:0

How can I permanently change PATH variable in Ubuntu 20.04?

cn flag

How can I permanently change PATH variable in Ubuntu 20.04?

What file should I modify?

Thank You

nobody avatar
gh flag
change or extend?
Score:2
it flag

You can just add it to your ~/.profile or ~/.bashrc or ~/.THESHELLYOUHAVErc

like adding :

export PATH=$PATH:/some-new/:./another

changing might be more like

export PATH=yourneed1/:yourneed2/ 

without the existing one $PATH

but you need to adapt that to your own needs

you have to logout or reload the file source ~/.profile once, it is not instantly done ;) (similar with .bashrc)

Pedro Rodríguez Cervera avatar
cn flag
Adding to .profile export PATH=$PATH:/directory , doesn't work.
francois P avatar
it flag
you have to logout or reload the file `source ~/.profile` it is not instantly done ;) I forgot to comment that.
Pedro Rodríguez Cervera avatar
cn flag
Thank you for your answer
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.