How do I permanently export a variable in Ubuntu?

How do I permanently export a variable in Ubuntu?
Answer
I am completely new to Ubuntu, and I would permanently set an environment variable.

…

1 Answer
  1. Open a terminal window with Ctrl + Alt + T .
  2. Open the file for editing with gedit ~/.profile.
  3. Add the command to the bottom of the file.
  4. Save and close gedit.
  5. Log out and log in again.
 

Tìm kiếm

Back
Top