At the moment I have a keyboard which lacks function keys (F1 through F12), and I was wondering - is there a way I could switch to textual TTYs (and back, which might prove to be a problem if I were to use
Assuming Linux, you can use chvt (as in
Note that chvt requires root privileges to do its thing, hence the sudo is necessary unless you are already logged in as root.
On Debian, chvt is provided by the packages
By the way, this took me about 15 seconds to find by typing