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".

learn more… | top users | synonyms

13
votes
1answer
9k views

why is there so many linux /dev/tty?

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 ...
12
votes
4answers
11k views

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 ...
8
votes
1answer
12k views

Console commands to change virtual ttys in Linux and OpenBSD

In Linux one presses Alt-F1, Alt-F2 etc to change virtual ttys. In OpenBSD one shall use Ctrl-Alt-F1 etc instead. My question is if there are console commands for these two operating systems that ...
6
votes
2answers
534 views

Can I login to multiple terminals with the same user safely on Linux?

By terminals I mean the ones you can switch to using Ctrl+Alt+F1-F6. I know I'm able to login multiple times but does this have any side-effects?
6
votes
2answers
11k views

Redirect input from one terminal to another

I have sshed into a linux box and I'm using dvtm and bash (although I have also tried this with Gnu screen and bash). I have two terminals, current /dev/pts/29 and /dev/pts/130. I want to redirect ...
5
votes
1answer
1k views

Socat and rich terminals (with Ctrl+C/Ctrl+Z/Ctrl+D propagation)

socat - exec:'bash -li',pty,stderr,ctty -> bash: no job control in this shell What options should I use to get fully fledged shell as I get with ssh/sshd? I want to be able to connect the shell to ...
5
votes
1answer
1k views

X on one monitor, a bare, tty terminal on another? (linux)

The graphics card on my computer has inputs 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, ...
5
votes
2answers
1k views

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 ...
4
votes
5answers
7k views

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 ...
4
votes
1answer
5k views

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 ...
4
votes
1answer
1k views

Is there a limit to virtual console TTY's in Linux Based OS'es

The TeleType Consoles in linux can be switched by Ctrl + Alt + F(#TTY). How many such TTY's can linux have at a time? Is there even a limit?
4
votes
3answers
1k views

Tweaking Mac OS X full-screen console mode

When using the full-screen console mode in Mac OS X accessed by entering the username '>console', I would like to use a different keyboard layout and would like support for colors. The terminal seems ...
4
votes
1answer
897 views

Redirect physical keyboard input to SSH

I'm having a raspberry pi running debian linux and I have an RFID reader connected to it. The RFID reader behaves like a keyboard. Every time I scan a tag it types then number of the tag and then ...
4
votes
1answer
1k views

How to get different terminals for dual monitor scheme without X

I have Ubuntu installed without X.org with two monitors(single card: vga and dvi) Login shell is cloned for both monitors. I there any way to have different shells(tty) for these monitors?
4
votes
5answers
221 views

How to prevent a process from executing in bash

The following command has been entered: sleep 12h; nuke-russia It was entered on one of the Debian's ttys. I would like to cancel the sleep without nuking anything. I don't want the nuke command to ...
3
votes
2answers
2k views

Silencing Linux console output

I installed a minimalist distribution for my mom to use, it uses rungetty to autologin and an init script that just does 'startx'. Everything works great but when she goes to shutdown, it drops back ...
3
votes
3answers
2k views

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. ...
3
votes
2answers
221 views

format stdout as multicolumn text

I'm trying to take some single column data and display it in a tty as columns, much like ls does. Basically, you can think of this as trying to take the output from ls -1 and make it look like the ...
2
votes
2answers
1k views

How to access Linux startup tty

I have a problem that is shown at the end of bootstrapping the kernel, just before the screen is cleared and Linux swaps me to tty1 where I can put my login. How can I access the bootstrapping tty ...
2
votes
2answers
190 views

How to enter tty1-6 in Linux in virtual-box in Linux host

I installed a virtual box in my Ubuntu host, and then installed another Ubuntu on my virtual box. Everything is alright except when I try to enter tty1-6 in the virtual one, I just enter tty1-6 in my ...
2
votes
4answers
8k views

How to use sudo from within Windows GUI clients bypassing tty

I need to copy files via ssh but I am getting permission denied. How can I log as a root by windows clients such us FileZilla/WinSCP? I try execute command: sudo su, but I am getting error: You ...
2
votes
2answers
1k views

Displaying text on /dev/tty1

I have a server laptop sitting around at home which is a pretty bland server, on which I generally leave the lid open and there is a login prompt always displayed. However, I'd love to be able to ...
2
votes
2answers
747 views

How to get tty shell working directory?

Is it possible to get working directory of any of my tty shells? So\ get working directory of any shell in /dev/ttys??? belonging to me. I use OS X.
2
votes
1answer
981 views

“stdin: is not a tty” message from scp

I got this message when I copy file using scp to CentOS server "stdin: is not a tty". What it means and how I make it go away? The transfer is ok.
2
votes
1answer
331 views

How to cat <<'EOF' arbitrary text data from clipboard

I want to paste some text into a terminal and save it to a file without using an editor, but just 'cat'. But too long lines or tabs in text make it impossible to do so with a simple command like "cat ...
2
votes
1answer
1k views

How to read data from USB port

I have a CANbus to USB adapter (Softing CANusb) that we are using for a project (see attached picture bellow). This device has Windows drivers and a Windows API in order to access the data in the CAN ...
2
votes
1answer
259 views

Disable Bright Colors in TTY

I've been searching for a way to disable the bright (bold) colours in a TTY (colours 8 to 15). I'd like all bright colours to use their half-bright counterparts.
2
votes
3answers
632 views

Really annoying keyboard screw up when entering sqlplus

Often when using bash I am used to using the keys ^A and ^E to go to the beginning and end of line, and the arrow keys to move from character to character without erasing. Every now and then, I ...
2
votes
1answer
571 views

Can i start an X session “background”?

can i start the *DM (e.g. kdm) on tty7, but not present on the screen? For example, i want to stay at tty1 while the login manager is waiting on tty7 on boot.
2
votes
2answers
1k views

how is the the linux console displayed to the user and how does the user go about changing the consoles display settings?

I've been searching for the last two days on trying to understand how the console displays itself to the user and how to change the console settings. I've had some luck along the way but nothing that ...
2
votes
3answers
395 views

How can I determine if a client SSH connection has a tty associated with it?

Im writing a PAM module to handle authentication (server side - sshd) and I have to know if an ssh client is a tty (interactive) or not (non interactive). Does anyone have a clue?
2
votes
3answers
1k views

Howto start an interactive script at ubuntu startup?

Based on Ubuntu core 12.04, I have prepared a bootable DVD. After booting (to console only), I can login as a user and start a script for installation of an embedded device: sudo install_script In ...
2
votes
2answers
338 views

Screen run command, detach and get output

I am trying write a script which connects and runs command on /dev/ttyUSB0 after that gets the output. screen -d -m 'SCREEN COMMAND' -L /dev/ttyUSB0 But this does not create an output file. How ...
2
votes
3answers
623 views

Run a script after killing lxsession (xorg)

I am trying to run a program automatically within a bash script after killing the LXDE session. My script consists of: #!/bin/sh pkill lxsession; sh ...
2
votes
1answer
2k views

unable to switch TTY in arch linux

So I'm moving away from Ubuntu into the realm of Arch Linux. In Ubuntu I was able to switch TTYs with ctrl+alt+F1/F2... and etc. In Arch when I attempt this, I'm merely dumped to a black screen ...
1
vote
3answers
2k views

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 ...
1
vote
4answers
1k views

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 ...
1
vote
1answer
713 views

why most linux distro have 7 tty and make x window to tty 7 as default? [closed]

I know tty can be reduced but I don't know why Most linux distro have 7 tty(s) as a default setting. Why choose 7 instead of 6 or 3? I had never use all 7 tty at the same time. And, The reason for ...
1
vote
2answers
619 views

Determining available TTY text-mode resolutions

How do you determine what text-mode resolutions are available with a graphics card? I have been using uvesafb to get higher resolutions, but framebuffer TTY display is very slow, so I'd like to try ...
1
vote
1answer
1k views

What does “:pts/1:S.0” mean?

From the output of last on RHEL5 user3 pts/6 :pts/1:S.0 Sat Feb 26 04:04 - 05:40 (01:35) user2 pts/7 :0.0 Fri Feb 25 21:32 - 04:53 (07:21) user1 pts/6 ...
1
vote
1answer
2k views

TTY Resolution in Xubuntu 9.10

I've exhausted my ability to search through Google for this, so I'm giving it a go here. What I'm trying to do is increase the resolution (or decrease the font size) in the TTY terminals. Xubuntu ...
1
vote
1answer
112 views

Where can I find documentation about GNU/Linux TTY formatting

On gnu.org site there is GNU Head that can be display on terminal it have XTerm compatible (Normal documented ANSI Codes) but it also contain TTY version (it work on Cygwin, didn't test in XTerm or ...
1
vote
1answer
226 views

How to combine the tee command with interactive scripts to log the results?

From some time usually record long outputs with tee to later less them, this is awesome to review configure and make outputs and such, but fails when the script or program is installation like, asking ...
1
vote
2answers
1k views

Linux: can't get out of Ctrl-Alt-F7 with no X server running

I'm currently logged in (locally) to a machine and was running in a TTY session without having started an X server. I accidentally hit Ctrl-Alt-F7 bringing me to where the graphical shell would be if ...
1
vote
1answer
566 views

PPP connection between PalmOS and Ubuntu (over ttyUSB0?) without crashy “visor” kernel module

I have a Palm Treo 680 which I'd like to use as a media remote, using Palm MPC. Almost the exact instructions on that page used to work perfectly for establishing a PPP connection over the USB cable; ...
1
vote
1answer
241 views

How can I make my computer without an X-server stop booting into TTY 7 and boot directly into TTY 1?

I recently disabled the graphical login manager on my Ubuntu and started using startx. But when the computer turns on, instead of giving me a login prompt in one of the TTYs (I think that's how you ...
1
vote
1answer
2k views

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 ...
1
vote
2answers
349 views

How to execute a command under Linux after booting without a TTY session?

I'm creating a kiosk PC at the moment and I'm wondering if this is possible: When the PC is started and Linux Debian boots and I wonder if it's possible to start the command startx respectively xinit ...
1
vote
1answer
194 views

Why are there 3 pts entries in /dev/pts when w only shows 1?

In the directory /dev/pts I see 3 pts instances as shown in the screenshot below however when I run the command w I only see 1 instance of pts. Why is that? /dev/pts w
1
vote
1answer
19 views

linux - use wmctrl from tty1

When I try to run wmctrl (e.g. wmctrl -l) from a tty outside of X (e.g. tty1), I get "Cannot open display." I have tried setting the $DISPLAY and $XAUTHORITY variables to the values I get from a ...