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. – Jun 03 '13 at 19:04.forward)? Users often set a few variables in their.profileor other configuration files, and there's no way to reliably enumerate them all. Again, what problem are you trying to solve? – Gilles 'SO- stop being evil' Jun 03 '13 at 19:14