Is there a way I can see the environment variable of an other user? I want to do that as root, so permissions won't be a problem I guess.
For the user himself, I use echo $PATH
or set | grep PATH
(or set
when I don't remember the variable name). What would be a similar instruction for an other user?
For what it's worth, I'm on Ubuntu Server 13.04.
echo $MAIL
, but I thought there might be a shortcut..forward
)? Users often set a few variables in their.profile
or other configuration files, and there's no way to reliably enumerate them all. Again, what problem are you trying to solve?