Find the answer to your Linux question:
Results 1 to 2 of 2
how do I set environment variable in pclinuxos? ok I can use set var=x but how do I make it stick??...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Posts
    2

    Smile how do I set environment variable in pclinuxos?


    how do I set environment variable in pclinuxos?

    ok I can use set var=x but how do I make it stick??

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    Put in ~/.bash_profile or /etc/profile. The code below should do the trick for bourne type shells like bash, zsh, ksh etc.
    Code:
    export VAR=X

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •