Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
Wat het doet
chvt N makes /dev/ttyN the active console, like pressing Ctrl+Alt+FN. It is useful when you work on a machine through a remote tool that cannot send Ctrl+Alt key combinations, or from a script.
You must be root (or own the console) to switch.
Zo schrijf je het
chvt [OPTION] NOpties 3
Meest gebruikt
Niets past bij dit filter.
Voorbeelden 10
$ als gewone gebruiker# als root (of met sudo)
1Go to the third text console
chvt 3Same as Ctrl+Alt+F3.
2Go back to the graphical login screen
chvt 1On RHEL with a desktop, tty1 is the login screen.
3Switch to your graphical session
chvt 2On RHEL your desktop session usually runs on tty2.
4Use it over SSH to show a console to a colleague
chvt 4The physical screen in the server room changes.
5See which terminal is active
cat /sys/class/tty/tty0/active tty2Shows the active virtual terminal.
6Switch when the remote console cannot send Ctrl+Alt+F keys
chvt 3Many web consoles of virtual machines catch these keys.
7Free a virtual terminal that is not used
deallocvt 7Removes unused consoles from memory.
8Open a login on another console from a script
openvt -c 5 -- /bin/loginStarts a login program on tty5.
9Check which consoles have a login prompt
systemctl list-units 'getty@*'Each text console with a login prompt is a getty service.
10Switch back after maintenance
chvt 1Leave the screen at the login prompt.
Niets past bij dit filter.
Let op
- chvt changes the physical screen. Users on the console notice it.
Tips om te onthouden
- chvt N = Ctrl+Alt+FN from the command line.