how to set environment variables in linux

Let me write down how to set environment variables in linux shell.

Bash
- set  them in .bashrc file
- SYNTAX: export VARIABLE=value
- ex)  export LANG=ja_JP.UTF-8

Csh
- set them in .cshrc file
- SYNTAX: setenv VARIABLE value
- ex) setenv LANG ja_JP.UTF-8

 

Share on Facebook
Post to Google Buzz
Bookmark this on Yahoo Bookmark
Bookmark this on Digg
Share on FriendFeed

This entry was posted in Others. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>