On 24 Jun 2022, at 13:10, Anil F Duggirala anilduggirala@fastmail.fm wrote:
hello, I would like to change the $PATH environment variable permanently, to be able to execute a program more quickly. I have tried adding a new line: export PATH=$PATH:/my/path , to my .bashrc .
See PATH in .bash_profile not .bashrc. Because you want it set once, not every time a new subprocess starts.
When you start a Terminal it should be setup to start a login shell.
Barry
When I log in again, I see that $PATH is now: $PATH:/my/path/:/my/path, my directory has been appended twice. I don't know exactly what the "export" command actually does, so I am lost here. thanks for your help. _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure