Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 844  / 1 Year ago, fri, may 26, 2023, 6:38:57

I have searched a lot about it but could not get an answer. I read somewhere that linux Ubuntu has 6 or 7 terminals.



We can start them by pressing -



Ctrl+Alt+(F1-F6)


and to get back to GUI-



Ctrl+Alt+F7


So what i want to know is what is the difference between these 6 different terminals , and how can we use them as per to different purposes??


More From » tty

 Answers
5

In fact there are not only 6 or 7 ttys, there are many more. You could see them, try



ls /dev/tty* | wc -l


All the consoles are not always active. You need to activate ttyN in order to switch to it with Ctrl+Alt+F N. You can activate any tty with openvt command also. See man openvt.



Reason why there so many ttys, may have historical baskground. In old days Linux was used in terminals (without X server).




  • To do multiple tasks at the same time it was indispensable to have more than one ttys.


  • due to any accidentally break, it was required to have another tty from where system could be monitored.


  • Even to read more than one man pages, different ttys were needed.




Nowadays for most users don't need that many — in fact most users never see anything but first 6 ttys to be available for CUI login and the virtual console that X is running on. As Rinzwind mentioned all these terminals are mostly identical.



But there are a few people who patch their kernel to allow more than 63 consoles(special ttys), because they run large machines with many hardware consoles.


[#28135] Sunday, May 28, 2023, 12 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
steaocyte

Total Points: 345
Total Questions: 122
Total Answers: 121

Location: Spain
Member since Wed, Nov 23, 2022
1 Year ago
steaocyte questions
;