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 uname -a is ide
uname -a
I just came up with this for my .bashrc for adding some WSL items to $PATH.
Works in 1703. Not sure if earlier versions.
if [[ $(uname -r) =~ Microsoft$ ]]; then foo fi