title: I added aliases to user ~/.bashrc but “sudo -u user -i 'alias_name'” still reports “command not found”?
body: <p>As a trivial example, in user foo's ~/.bashrc there is an alias;</p>
  
  <pre><code>alias ll='ls -l'
  </code></pre>
  
  <p>Using sudo I can see the alias is set;</p>
  
  <pre><code>bar@laptop:~$ sudo -u foo -i alias ll
  alias ll=`ls -l'
  </code></pre>
  
  <p>But, I can't actually use the alias;</p>
  
  <pre><code> bar@laptop:~$ sudo -u foo -i ll
   -bash: ll: command not found
  </code></pre>
  
  <p>Commands that are bash functions work, OK.  Is there a way to get the aliases to work also?</p>