Settings environment variable in Fedora

I have a Fedora Linux server and I am trying to set:
PEAR=/home/pear/bin/pear

but when I try to set it under env or in a .profile file under home it still doesn’t work. I even log off and log back in and I can’t just run
PEAR

Does anyone know how to fix this? Thanx

You want an alias.

Use:

alias PEAR='/home/pear/bin/pear'

in your .bashrc file.

Then log out and log back in. Then type PEAR at the command line to execute /home/pear/bin/pear

Alright thanks :smiley:

Hello,

try to export your variable such as

export PEAR

Than from your shell test it out by echoing

echo $PEAR

Thanks.