Questions tagged [tty]
A tty (teletypewriter) is a Unix command that prints to standard output the name of the terminal connected to standard input. It is typically called a terminal. the first local terminal is referred to as tty1 and resides in /dev/tty1
119
questions
10
votes
2
answers
11k
views
Switching between virtual console (tty) and GUI
How to switch between virtual console and GUI in Ubuntu? I wanted to see what key functions would allow me to switch between the two.
38
votes
4
answers
12k
views
TTY doesn't wait for password
I upgraded from 16.04 to 18.04. When I press Ctrl+Alt+F3 I get the terminal which prompts for the username. When I type my username and press Enter, it doesn't wait for my password (its as if I ...
105
votes
5
answers
319k
views
What is a tty, and how do I access a tty?
I keep hearing about these things known as tty's.
what are they
how can I access them
what do they do?
63
votes
4
answers
178k
views
How do I log all input and output in a terminal session?
How do I keep logs of all the work done via terminal? For example, I want a record of all the work done on database via terminal.
18
votes
1
answer
9k
views
Why is my GDM at a different TTY than my desktop environment?
I am running Ubuntu Gnome 16.10 (64bit). Gnome-shell version 3.20.4.
When I start my computer, I eventually see GDM3 offering a login prompt, as expected.
After I log in, my monitors flash a little (...
105
votes
4
answers
156k
views
How do I change the font or the font size in the TTY (console)?
I am using Ubuntu 12.04. Recently, the font size for all of my TTYs became much larger.
How can I change the font size back to the default?
65
votes
10
answers
178k
views
How do I increase console-mode resolution?
When my computer goes to console mode (booting up, shutting down or Ctrl + Alt + F1)), the text is super big. I can't take a screenshot of it, but it looks like a 640 x 480 resolution. My monitor ...
6
votes
2
answers
33k
views
How to create ubuntu server 16.04 autologin?
Something has changed in server 16.04 LTS, I can't find tty1, but I need to make an auto-login on tty1 (in console mode), in 14.04 LTS I can make this work.
I can't find /etc/init/tty1.conf
How to, ...
34
votes
4
answers
12k
views
Why so many Virtual consoles?
What is the reason for having so many virtual consoles?
I would understand if there was one in case the GUI crashes but 6 more besides the default? What are they for? I even see no usage for any of ...
23
votes
4
answers
15k
views
How can I customize a full-screen console background (TTY)?
I used to use full-screen consoles (those opened with Ctrl+Alt+F1...F6) actively and have come to an idea that I would like to try decorating it with a "wallpaper" of a sort (a rather dark and ...
23
votes
6
answers
58k
views
How do I disable Virtual Consoles tty[1-6]?
How do I disable switching to virtual terminals (TTYs) using(Ctrl+Alt+F1...F6) in Ubuntu?
68
votes
7
answers
341k
views
How do I allow a non-default user to use serial device ttyUSB0?
I have an Ubuntu 11.10 system with 2 users:
The first was created during the installation
The second instead was created after. It belongs to the sudoers group.
Now the problem is that when the ...
41
votes
2
answers
47k
views
How can I change the TTY colors?
How can I change the standard 8 colors (16 if you count the bright versions) that are used in the various TTYs in Ubuntu 12.04? I'm not talking about the Terminal or XTerm applications, I'm talking ...
11
votes
1
answer
3k
views
How do I get information from the logs on my computer when I only have access to the command line?
For various reasons I can no longer access my graphical desktop, and can only login via a tty (Ctrl+Alt+F1 through F6 by default).
To help diagnose and solve my problem I need to look through the ...
75
votes
4
answers
24k
views
Alt + F4 switches to TTY4
Since yesterday Alt+F4 is working unexpectedly on my computer. When I press those keys TTY4 is opened. Also, the application which is running on the GUI receives the Alt+F4 message. This is solved by ...
24
votes
4
answers
20k
views
"♦: command not found" in tty after login
I have this problem after upgrade Lubuntu from 12.10 to 13.04.
I press Ctrl + Alt + 1, enter login, password, wait two seconds and get: ♦: command not found". After this message I can type commands ...
24
votes
3
answers
32k
views
How can I reduce the number of TTYs?
I don't need 7 TTYs (or do I?). So how do I reduce this number to 3?
2
votes
2
answers
1k
views
TTY characters mixed up after device cat or Python print
So, when I cat /dev/input/mouse0 in a TTY, move the mouse around a bit, and then ctrl-z to stop cat, my terminal characters are all messed up. Almost every single character gets swapped out for ...
175
votes
7
answers
309k
views
What does "TTY" stand for?
On the Wikipedia's article (Computer terminal) under the hard copy terminals section of the article it says this "Early user terminals connected to computers were electromechanical teleprinters or ...
20
votes
2
answers
385k
views
Reinstalling Ubuntu via Terminal
I've currently encountered some issues with ubuntu causing me to be stuck in tty mode.
I already tried fixing the issue but since I'm not sure of what really happened for this issue to occur I now ...
18
votes
6
answers
31k
views
How do I get my blacked out ttys back?
Original Question:
After I replaced my Ubuntu 10.10 with 11.04 all I get when I Ctrl+Alt+F1–F6 into a tty is a black screen. Also when I boot there's a while of black screen after grub2 menu is ...
50
votes
3
answers
58k
views
How can I restart Compiz from a TTY? (& Related, how can I set up a fallback WM?)
I'm testing Natty, and Compiz keeps crashing on me. However, it doesn't always give me the option to restart Compiz, and for some reason doesn't have a fallback window manager(WM) configured.
...
29
votes
3
answers
39k
views
What is tty7/tty2 in the commandline?
Recently I have been playing around in terminal and typed the who command. As I see my username and date, I don't know what tty7 (tty2 on Ubuntu 17.10 and newer) or what this pts/0 is, can somebody ...
21
votes
3
answers
39k
views
How to enable or disable GUI in Ubuntu
Say if I wanted to replicate Ubuntu Server and have no GUI running what would I do to make this happen? Upon running htop/top from tty session I see both gnome and xorg are still running and sucking ...
18
votes
5
answers
95k
views
How to access GUI from TTY mode?
I am using Ubuntu 13.10 32-bit. I am using terminal mode to test a Window Manager.
I know I can use Ctrl+Alt+F1 to go to terminal mode from the GUI mode. But there is still graphical desktop ...
17
votes
3
answers
27k
views
Start another GUI on different TTY
For some reason I want to have 2 GUIs open at different TTYs.
the commands
sudo service lightdm stop/start
will stop/create a new GUI at TTY7. but how can I do the same at different TTYs or ...
10
votes
3
answers
74k
views
Cannot login to any TTYs - Wrong password
I am using Ubuntu 12.10 with Unity desktop. I go to TTY1 by pressing keys CTRL + ALT + F1, where I am asked to enter username and password, which I do, but I get the message "Login incorrect". In my ...
3
votes
2
answers
1k
views
How do I determine which is the current user's DE through CLI within SSH or Cron? [duplicate]
Let's assume we have a computer with Ubuntu Desktop installed on it. There are a few desktop environments (DE) installed such as: Unity, Gnome, KDE, XFCE, Mate, etc.
Also few users have their ...
22
votes
3
answers
12k
views
Enable Ctrl+Alt+F1 Virtual Consoles in GNOME (Ubuntu 17.04+)
In previous versions of Ubuntu, Ctrl+Alt+F1 through F6 opened up virtual consoles. On Ubuntu Gnome 17.04 Ctrl+Alt+F1 opens another GUI and the others do nothing.
How do I restore the old behavior?
15
votes
3
answers
49k
views
How do I auto-login as root into the TTY upon boot?
I am working on creating a real time kernel with RT-PREEMPT patch.
I have created this kernel without graphic desktop. It comes up in the terminal mode with login prompt.
The requirement is, it should ...
11
votes
3
answers
13k
views
Change Default TTY shortcut
I would like to change the default shortcut to switch back and forth to the tty. By default it is ctrl + alt + F#. I have tried making a custom shortcut using Ubuntu's keyboard settings but it only ...
2
votes
1
answer
2k
views
How to boot to Ubuntu desktop from the console
My laptop is installed with Windows 8.1 and Ubuntu. I can use both OSs. I've been using Ubuntu for one week. I start up my laptop, and then I go to Ubuntu, but I just see the virtual console screen ...
1
vote
2
answers
7k
views
How to run a bash script while Ubuntu is starting up on tty
My grub doesn't have "quiet splash" so it displays text while booting, and I want to run "neofetch -L" just before it displays "Welcome to Ubuntu 20.04 LTS"
1
vote
3
answers
9k
views
login loop ubuntu 12.04
Today I restarted Ubuntu 12.04, after installing some packages and having updated firefox. When I came in the login screen, I typed my password. After about one second processing, the screen blacked ...
0
votes
1
answer
2k
views
How do I backup my files from TTY login
I mistakenly changed permission recursively, issuing the following command on many files, including /usr/bin/sudo:
chown -R $USER:$USER sudo
Now I want to reinstall my Ubuntu OS but I need to back ...
0
votes
1
answer
1k
views
I don't know how to use console line on linux
I'm a student and I need to use a console cable to connect a Cisco switch
but i don't know how to use it in linux
Below is my device information:
Linux xianyu-ThinkBook-14-G4-IAP 5.15.0-39-generic #42-...
85
votes
11
answers
465k
views
How do I connect to TTY/COM (/dev/ttyUSB0)?
I am running Ubuntu for the first time by booting from a USB drive. Now I have plugged in a USB-to-serial converter which has been recognized and automatically added as /dev/ttyUSB0.
How do I access /...
52
votes
7
answers
212k
views
What is the default Debian/Ubuntu console (TTY) font called?
I'm currently running Ubuntu and a few other Linux distributions on my computer and since I use the TTY a lot, a good font is pretty important!
Does anyone know the name of the default console/TTY ...
50
votes
8
answers
94k
views
How to check which tty I'm currently using?
There are 7 terminals that can be used in our system. tty7 is GUI based.
How can I check which tty I'm currently using?
21
votes
3
answers
21k
views
How to enable unicode support in a TTY?
when I open a tty (Ctrl + Alt + F1) it doesn't have utf-8 support. How can I enable it?
18
votes
1
answer
60k
views
How do I get out of Ctrl + Alt + F3? [duplicate]
I pressed Ctrl+Alt+F3 by a mistake and then my computer showed a fullscreen terminal asking for my password and username, How do I get out of that?
16
votes
2
answers
10k
views
How do I access console from GDM ? (wayland)
When on GDM login screen, Ctrl+Alt+F3 ... F7 does not work.
After logging into GNOME desktop, then Ctrl+Alt+F1 will bring me to GDM, F2 back to GNOME, and F3 to F7 to a TTY terminal.
But before I log ...
10
votes
4
answers
5k
views
How to find out who is using the physical console?
I would like to use a script to find out the username - of the user who is currently on the physical console (who has command of the keyboard, mouse and graphical display)?
I do not just want to ...
8
votes
1
answer
4k
views
Why does GDM run on TTY1 and gnome-shell on TTY2? [duplicate]
I am running Ubuntu Gnome 16.10 with gnome-shell 3.20.4.
I usually see my graphic interface run on TTY7. But now (new install) I see GDM run on TTY1 and my graphic interface on TTY2. Why GDM and gnome-...
8
votes
1
answer
9k
views
What's the difference between the TTY and the GNOME terminal?
I know that terminal can be started by Ctrl+Alt+T. But sometime users say about command-line with Ctrl+Alt+F2.
So, Is there any difference in working between them? And when should I use between them?
...
7
votes
3
answers
12k
views
How do I increase the number of TTY consoles?
I often find it convenient to work entirely from the command line, and like to have several tty "consoles" open simultaneously.
How do I make my system default to having more than the traditional 6 ...
7
votes
3
answers
5k
views
How to config hotkeys for switching between consoles in ubuntu
By default switching between consoles is evaluated by keys CTRL+ALT+Fx (1-6)
How to change these hotkeys? Is there any config file for doing this?
5
votes
2
answers
12k
views
After upgrade ubuntu 18.04 changed from GUI to Terminal
After upgrading from Ubuntu 17.10 to 18.04 I am not able to login to the desktop environment. This screen shows after restarting:
5
votes
4
answers
60k
views
Ctrl+Alt+F1 - incorrect login
I have pressed the keyboard combination Ctrl+Alt+F1, because I wanted to see the output of my commands as they were being executed, but I got the following error: incorrect login.
5
votes
2
answers
385
views
Run TTY script every time I open a GUI terminal
When I log in to a TTY I get the following nice text:
Ubuntu 16.04.03 LTS
Log-in: username
Password:
Last log-in date/time
Welcome to Ubuntu 16.04.03 LTS
* Documentation:
* Management:
* Support:
...