Terminal on Android device itself
The answer to the question seems to be: no, there seems to be no built-in terminal, at least not in the stock Android that comes with the Nexus 6P. You'll have to install an app for that. (I've asked on our SoftwareRecs.SE sister site which got at least one great recommendation.)