Pages

Sunday, December 14, 2014

What is difference between PATH and LD_LIBRARY_PATH ?

PATH is for specifying directories of executable programs. LD_LIBRARY_PATH is used to specify directories of libraries.

How to check Linux OS

[guest@gsindia-shell ~]$ cat /etc/redhat-release

CentOS release 5.2 (Final)

Monday, December 8, 2014

Conventions used to set env PATH for different shell.

Setting path at Unix/Linux:
To add the Python directory to the path for a particular session in Unix:

In the csh shell: type
setenv PATH "$PATH:/usr/local/bin/python" and press Enter.

In the bash shell (Linux): type
export PATH="$PATH:/usr/local/bin/python" and press Enter.

In the sh or ksh shell: type

PATH="$PATH:/usr/local/bin/python" and press Enter.