Thank you! The TTY gave me my desired result.
I am logging into Ubuntu through the default lightdm login manager. Am I correct in saying that lightdm invokes bash through the name sh?
From bash man page,
If bash is invoked with the name sh, it tries to mimic the startup
behavior of historical versions of sh as closely as possible, while
conforming to the POSIX standard as well. When invoked as an interac‐
tive login shell, or a non-interactive shell with the --login option,
it first attempts to read and execute commands from /etc/profile and
~/.profile, in that order.