2016年7月7日 星期四

global variable in bash

ether write in /etc/profile or add a sh in /etc/profile.d/

so making a file /etc/profile.d/cuda.sh
export LD_LIBRARY_PATH=/usr/local/cudnn/lib64:/usr/local/cuda/lib64:${LD_LIBRARY_PATH}
export PATH=/usr/local/cuda/bin:${PATH}
export CUDA_HOME=/usr/local/cuda
would make the variables for all users

reference:http://serverfault.com/questions/491585/is-there-a-global-bash-profile-for-all-users-on-a-system

沒有留言:

張貼留言