tty is a Unix command that prints on standard output file name connected to standard input. The program's name comes from teletypewriter, abbreviated "TTY".
Questions tagged [tty]
189 questions
36
votes
2 answers
Why are there so many /dev/tty in Linux?
In ubuntu 10.04, if I check under /dev,
there are more than 50 ttys.
tty0, tty1, tty2....
I understand tty is a character device for console input/output.
but why is there so many of them? is it something like pool?
and what is the difference…
daehee
- 475
32
votes
6 answers
How to reset a broken TTY?
My Slackware TTY can be broken easily by running:
cat some_binary_file
After the command, the entire TTY will no longer display readable characters but still responds to keyboard events.
Even if I logout and login again, the TTY is still broken and…
Howard
- 2,336
32
votes
1 answer
How to simulate a shell without tty?
I'm facing trouble with a system which I'm maintaining via SSH. When I test commands which require a TTY they work, probably because of the SSH session. Under some unclear circumstances there's no TTY available and commands like sudo fail due…
Kalle Richter
- 2,472
- 6
- 44
- 64
32
votes
3 answers
How do I get systemctl to print in color when being interacted with from a non-tty?
When I run a command like this:
# systemctl status plexmediaserver
I get nicely colored output. But when I run the following command:
# watch -n300 --color systemctl status plexmediaserver
Is there any way I can do this watch command with color…
cronburg
- 726
30
votes
5 answers
TTY with 256 colors?
With URxvt and xterm it is possible to use a virtual terminal supporting 256 colors instead of only eight. Since my Intel GMA graphics card is well-supported by the KMS framebuffer driver, I am exclusively working on the TTY. Unfortunately it only…
timn
- 956
22
votes
1 answer
How to change virtual ttys in Linux and OpenBSD with console commands?
In Linux one presses Alt-F1, Alt-F2 etc to change virtual ttys.
In OpenBSD one shall use Ctrl-Alt-F1 etc instead.
Are there are console commands for these two operating systems that can be issued to achieve this goal? Using key presses sometimes…
geek
- 10,674
20
votes
4 answers
Is there a way to alter the colors used in TTY consoles on Linux?
By "alter colors", I mean something like change black from #000000 to #111111, and by "TTY console", I mean what you get when you do Ctrl+Alt+F1 from X11, not a terminal emulator like xterm or urxvt.
I'm using Arch Linux, but I think it has more to…
Austin Hyde
- 1,134
13
votes
3 answers
How to restart ttyusb*
I have two devices that are continuously feeding data through ttyUSB0 and ttyUSB1. I have php scripts that are using this data. The problem I am running into is that sometimes the feed just kind of freezes. The best way I've seen to fix this is to…
emilyk
- 251
13
votes
1 answer
Show password characters when logging in to Linux
I am setting up a long-range wireless serial terminal (with a pair of XBees, if anyone is wondering) connected to my Linux box. It's going great, but sometimes a keystroke doesn't go through. This is usually manageable, I'll see the lack of it and…
Skylar Ittner
- 305
12
votes
6 answers
Linux: Copy/paste in TTY
I am looking for a way to copy and paste within a TTY. I only have a touchpad, and using it with gpm is a pain. The only possibility I can think of is to use "screen" but even after having remapped Ctrl-A to "`", it is still inconvenient and…
timn
- 956
12
votes
4 answers
How do I make Ubuntu start fbterm in the tty on startup?
When I was testing openSUSE about a week ago, I noticed that tty1 (yes, just tty1) had the openSUSE background. I want to do the same in Ubuntu.
I found a way using fbsplash. I'm not too keen on that since it involves modifying the kernel.
Then I…
biggles5107
- 335
11
votes
1 answer
X on one monitor, a bare, tty terminal on another? (linux)
The graphics card on my computer has outputs for (at least) two separate monitors. I have one monitor that is high resolution, and I like using it for X (anything graphical). My other monitor, however, is an OLD, low resolution, flat-panel…
pepper
- 389
11
votes
5 answers
less emulate a TTY to preserve piped color output
When you pipe something through less, the program usually discards color codes because it's not outputting to a TTY. So you have to add --color=always to the options for it to work.
ls -l --color=always | less
grep -R asdf --color=always |…
goweon
- 1,821
10
votes
1 answer
Sending change virtual console command in PuTTY
I'm trying to use PuTTY to change the virtual console on Linux via the usual key commands - Alt + F1 or Ctrl + Alt + F1 etc. However this doesn't work.
Switching TTY should be simple and is something I need to be able to do in PuTTY, preferably not…
nemof
- 153
9
votes
1 answer
/dev/tty: no such device or address - only in a script
I'm pulling my hair out over this. I've looked over all of the google results for /dev/tty : no such device or address, none of them apply to what I am doing / none of the solutions are successful.
I have a script that ssh'es into another machine…
Brydon Gibson
- 873