To get a shell, if you have access to nothing other than Parallels Shared Folders on the desktop, you can find Terminal by searching in that folders window.
Or use Parallels > Devices > Keyboard > <Ctrl><Alt><F1> to get to a console login
-or per Mac keyboard-
Fn + control + option + F1
To get back to Ubuntu desktop
Fn + control + option + F7