Linux – How do i change the path of executable

linuxpath

I am trying to change the executable path of OpenSSL from '/usr/bin/openssl' to '/usr/local/openssl/bin/openssl'. I have tried

export PATH=/usr/local/openssl/bin/openssl:$PATH

but the which openssl command still gives me '/usr/bin/openssl'

How can I make the other openssl run without replacing the openssl in '/usr/bin/openssl'?

Best Answer

../bin/openssl is not a directory.

export PATH=/usr/local/openssl/bin:$PATH
Related Question