How can I access a tty from the terminal?

7,405

Solution 1

Some options:

  • sudo chvt 1 will bring you to the first virtual console. Putting this in a .profile should not be very useful.
  • Snooping on a running virtual console is allegedly possible with ttysnoop.

Solution 2

I don't know if it is possible from within a terminal, but you can change to another tty by pressing Ctrl + Alt + F1-7 which shows a CLI outside your graphical environment.

Pressing Ctrl + Alt + F7 will show your desktop again. Very useful if you are running a server, which does not have a graphical environment by default.

Share:
7,405

Related videos on Youtube

Amith KK
Author by

Amith KK

Updated on September 18, 2022

Comments

  • Amith KK
    Amith KK over 1 year

    How can I access a tty (eg tty1) from the gnome-terminal? Can I set up a profile which does that?

    I know the switch using Ctrl+Alt+F1-6

    • psusi
      psusi over 12 years
      What do you mean by "access", and "terminal"? tty1 IS a terminal.
  • jrg
    jrg over 12 years
    He specifically states that that's not what he's looking for.
  • Amith KK
    Amith KK over 12 years
    Not really what i'm looking for
  • shay.porteous
    shay.porteous over 12 years
    Then please give more detail.
  • Amith KK
    Amith KK over 12 years
    i want to interact with the tty from gnome-terminal