Score:0

Someone know to do permanent enviroment variables with .env file?

hm flag

My Problem is, I want to do permanent enviroment variables, but I don't want modify .bashrc or .profile to add export varible=content. Because that I see that is possible with .env file but i do and don't work

vidarlo avatar
om flag
You *have* to set it in `.bashrc` or some other file that's executed on startup of the shell. There's no other feasible way. You *can* `source .env` of course, but ...
Artur Meinild avatar
vn flag
Any reason why you will not modify `.bashrc`? That's a pretty imposing restriction to set on yourself when using Linux.
mook765 avatar
cn flag
You could use `/etc/environment`.
hr flag
Can you be more specific than *"i do and don't work"*? What did you try, exactly, and what happened?
ec flag
**Welcome to the Ask Ubuntu community.** I'm not sure how this relates to the Ubuntu OS. You might be better served asking this question over on the [Unix & Linux SE](https://unix.stackexchange.com/).
I sit in a Tesla and translated this thread with Ai:

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.