I am new to Unix, and I am trying to declare a variable. I edit /etc/profile to read:
Saved, exit. I did the same thing to a standard user account in the .profile. When I run
My question is why when I declare a variable in a .profile or in /etc/profile, it never works unless SSH'd into localhost?
TIA
Code:
VARIABLE=Variable
export VARIABLE
Saved, exit. I did the same thing to a standard user account in the .profile. When I run
echo $VARIABLE I get noting but a blank line as root. Strangely, the user account can successfully echo the variable, but ONLY when SSH'd into the system. My question is why when I declare a variable in a .profile or in /etc/profile, it never works unless SSH'd into localhost?
TIA