title: How to check if a program is run in Bash on Ubuntu on Windows and not just plain Ubuntu?
body: <p>Pretty straightforward, the usual places to figure out the OS you're on seem to be identical to plain Ubuntu on Ubuntu for Windows. For example <code>uname -a</code> is identical to a native GNU/Linux install and <code>/etc/os-version</code> is identical to a Ubuntu Trusty Tahr install.</p>
  
  <p>The only thing I can think of is to check if <code>/mnt/c/Windows</code> exists, but I'm not sure if that's a foolproof idea.</p>