I've added some environment variables to /etc/profile and /etc/bashrc, but when I run commands with sudo, they're not there—sudo env does not list them. Is there some other profile I should be editing ...
Simply put, environment variables are variables that are set up in your shell when you log in. They are called “environment variables” because most of them affect the way your Unix shell works for you ...