This question already has an answer here:

I'm using Ubuntu Server with no X11 or any other graphical system installed. I'd like to rotate my monitor for using it vertically. Is there an equivalent to xrandr but only for terminals?

marked as duplicate by earthmeLon, karel, dessert command-line May 22 at 6:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.