Is it possible to define multiple environment variables at once? Ideally I'd like to paste them all at once instead of setting each one separately.

  • Where are you setting these each separately?
    – muru
    Commented Oct 25, 2021 at 10:13
  • Please explain your problem. How are you setting them separately ? And where ?
    – Soren A
    Commented Oct 25, 2021 at 10:14

1 Answer 1


Simply, export a="1" b="2" c="..., etc.

Is this really what you want to do?

Perhaps you want to put them in, .bashrc?


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .