跳到主要內容

set environmental variable in bash and in csh

export is used in bash to setup environmental variable. Similar command in C-shell will be setenv.

For example,
export data_directory=/data/whatever in bash

is equivalent to
setenv data_directory /data/whatever in C shell.

留言