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
    Oct 25, 2021 at 10:13
  • Please explain your problem. How are you setting them separately ? And where ?
    – Soren A
    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?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.