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

0
votes
0answers
16 views

Kali Linux Glitched Boot

I'm having a problem with Kali Linux when it should start the gui, my cursor is constantly flickering. When I switch to tty2 I'm able to login but then I get in the command line. When I do X I end ...
3
votes
3answers
873 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.
4
votes
1answer
4k 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 ...
2
votes
1answer
72 views

/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 ...
0
votes
0answers
17 views

sakis3g on raspberry pi2 not accepting any other interface other than ttyUSB0 or ttyUSB1.. how to make connection on other ttyUSB*

i am newbie to linux and raspberry pi. On my raspberry pi 2 , i use sakis3g to make the connection successful,it works fine when it is connected to ttyUSB1 or ttyUSB0 but wen i reboot the system with ...
9
votes
1answer
138 views

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 ...
14
votes
1answer
23k 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. Are there are console commands for these two operating systems that can be issued to ...
-1
votes
1answer
41 views

What is the difference between terminal and tty?

I have seen these two terms use interchangeably. What do they represent?
2
votes
1answer
613 views

Is it possible to use uvesafb with nvidia proproetary drivers?

I would like to have high-resolution console with NVidia proprietary driver. To accomplish that I'm trying to use uvesafb. So what I've done: yaourt -S v86d /etc/modprobe.d/uvesafb.conf: ...
1
vote
1answer
50 views

Compare tty/pts ssh session between Unix client & server

Is it possible to list ssh session with tty/pts info and date of login and logout on a client ? equivalent of last command on a server. My users use a proxy ssh to connect to a server, but from proxy ...
2
votes
1answer
96 views

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 ...
0
votes
0answers
13 views

Linux Bash pts are not sorted

I log in to a debian server via ssh. Let's say I do this with 5 clients. Then the clients get: pts/1 pts/3 pts/4 pts/5 pts/6 So why is there no pts/2 ? (I did not find any pts/2 in ps aux) PS: When ...
2
votes
1answer
63 views

ssh force tty return extra non-printable character

I know ^M will show up when ssh -t, ref1, but I don't catch the situation when ssh -t into Centos 7.2(even Centos 6.2 is OK, but no difference between their environment vars). Anyone know about this? ...
4
votes
1answer
236 views

No /dev/tty in cygwin

I installed ammonite and got (Scala 2.11.7 Java 1.8.0_45) bash: /dev/tty: No such device or address bash: /dev/tty: No such device or address Exception in thread "main" java.lang.RuntimeException: ...
0
votes
0answers
24 views

Process running in SSH-allocated TTY not terminating once stdin is consumed

I can perform file-transfer via SSH* like this: ssh -T ${HOST} eval "cat > remote.txt" < local.txt However, if I instead allocate a TTY, it hangs until I press Ctrl+C: ssh -tt ${HOST} eval "...
0
votes
1answer
310 views

Run hardcopy on a specific screen window

I'm trying to run screen to connect to a serial port. I want it to run a command, and then every 60 seconds I want to use hardcopy to write which is shown to a log file. So far I've done this: ...
0
votes
0answers
9 views

How do I make pre-named virtual serial ports on bootup in debian linux?

I am making a TTY re-director so I can read data as its coming in and out of a serial port. I know I can use socat to create virtual serial ports, but the question is how do I make sure that the names ...
1
vote
0answers
105 views

Can't use sudo when autologin in Arch Linux

I have a Pandaboard running Arch Linux, the default non root user is alarm. I'm trying to automatically login at startup with the alarm user. I followed the instructions here and created the file /etc/...
1
vote
0answers
134 views

How can I run Qemu with the “-nographic” option in Mac OS X?

Does anyone know how to run Qemu with the -nographic option in Mac OS X? The idea is to use the native Terminal for a text based operation instead of running inside Qemu’s own window. The -nographic ...
0
votes
1answer
143 views

Tty and X session locking

Most GUIs lock the session after a period of idleness or after resuming from sleep, which means that the user is require to reauthenticate themselves to continue the session. Can this be mirrored in ...
0
votes
0answers
106 views

Run qemu on separate tty (and X server?)

Is it possible to start a VM on a separate tty automatically, so I can switch between the host and guest through ctrl-alt-F{1,2}? I know I can start an X session manually, but I'd like to automate ...
6
votes
5answers
11k 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 ...
3
votes
2answers
395 views

Format stdout as multi-column 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 ...
0
votes
1answer
324 views

Controlling tty / terminal output from other session / shell

We are told that a tty can control at most one session and furthermore that ttys can be controlled not to allow background process groups within its controlled session to write or read from it, the ...
0
votes
1answer
88 views

xterm valid command not working in konsole nor gnome terminal

this works fine with xterm xterm -e '(dialog --msgbox "thebigmessage" 0 0)' but not with konsole nor gnome-terminal konsole -e '(dialog --msgbox "thebigmessage" 0 0)' gnome-terminal -e '(...
2
votes
1answer
42 views

How to start a desktop session without x and also runs a script?

I have a Ubuntu server with LXDE for development, now how would I create a .desktop file to start a session that doesn't startx but actually logs me into a regular tty1 session and also runs a ...
4
votes
2answers
10k 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 ...
0
votes
1answer
457 views

Unicode in tty?

I have to view a log file on Debian server which is written in Persian by a third party software. Is this possible to have UTF-8 + Unicode support in tty? I'm looking for solutions based on emacs or ...
2
votes
3answers
2k 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 ...
5
votes
1answer
10k 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 ...
1
vote
0answers
128 views

linux + what are the messages bad tty under /var/log/messages file

under /var/log/messages I see the following messages "bad tty" what the meaning of these messages? second is it caused because some application that called - owstd ? as we can see from the log? ...
1
vote
0answers
188 views

different ttys on different monitors

I am running a few un*ces and I have now grasped the power of using different ttys (Ctrl+alt+F(x)). Yesterday, I attached a second monitor. I was able to configure x to extend my desktop, and I became ...
1
vote
1answer
248 views

How to open tty or execute some script when the shortcut Ctrl+Alt+F[1-6] doesn't work and X11 is partially frozen but system is still working?

I'm using Ubuntu 10.10 with Gnome on Acer Aspire One netbook. The X11 or just some parts of Gnome like panels and partially windows (details described below) are frozen which doesn't allow to do ...
1
vote
1answer
42 views

Get user logged into a given tty

I'm writing a bash script that disconnects idle sessions but writes to the tty a few seconds before terminating it to make sure it really is not being used. The format for write is write user [tty]. ...
3
votes
0answers
111 views

How to remove tty[7-63]?

I have an embedded system, a beaglebone black to be specific. This SBC runs Debian wheezy 7.4, and a custom 3.8.x kernel. Patched for this hardware. Anyway, the title pretty much says it all. I can ...
1
vote
1answer
364 views

Print TTY Stream to Terminal

I have a usb device. The driver for said devices sets up a ttyUSB0 stream for interfacing with the device. I am trying to understand how the data from this device is formatted. Is it possible to ...
1
vote
2answers
2k views

Is there any way to open a program on a specific tty?

I have a PC with no mouse or keyboard, but it is connected to a monitor. I was wondering if is it possible to open a program remotely (like via SSH) in a specific tty (like tty1) so I would able to ...
4
votes
1answer
2k 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?
2
votes
1answer
918 views

How to resize tmux panes inside tty

I'm not sure if I used the right term, but by "tty" I understand the console that you can switch to using ctrl+alt+f2 key combination. echo $TERM points to linux. Anyway, when I enter the tmux mode I ...
8
votes
2answers
3k 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 ...
1
vote
1answer
2k views

Ubuntu 12.04: Cannot login to tty[1-6] except as root

When I press [Ctrl+Alt+F<1-6>] it takes me to tty1 through tty6 respectively, no problem. But at the login prompt, if I try to login with my username and password, it just immediately takes me back ...
5
votes
1answer
2k 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 ...
1
vote
0answers
136 views

Configuration to point an X tty to a separate system?

Specifically, I have an Ubuntu 10.04 system with a headless Ubuntu 12.04 virtual machine, and I'm looking for a way to have it set up so pressing ctrl+alt+F8 will take me into another X client which ...
1
vote
1answer
109 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 ...
0
votes
3answers
247 views

Accidentally typed password on logon prompt in Ubuntu TTY, is it stored?

Note: This is similar, but not identical to the question on how to handle passwords typed into the bash prompt. On my Ubuntu 14.04 machine, I opened VT1 using Ctrl+Alt+F1 and mistakenly typed my ...
0
votes
2answers
1k views

Suppress 'Warning: no access to tty' in ssh

I have a short simple script, that compiles a .c file and runs it on a remote server running tcsh and then just gives back control to my machine (this is for school, I need my programs to work ...
1
vote
2answers
979 views

Linux: Start tmux inside fbterm on login

So here's what I want: On every tty login, fbterm starts. It gives me a better resolution than the linux console, has working UTF-8 support (I'm sure it's entirely my fault that the linux console ...
5
votes
4answers
16k 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
1answer
559 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 >...
0
votes
1answer
173 views

Do /dev/tty and current /dev/pts/X are the same things?

Writing file to /dev/tty and /dev/pts/7 in this case results that it is printed in console: $ echo hello > file.txt $ cp file.txt /dev/tty hello $ tty /dev/pts/7 $ cp file.txt /dev/pts/7 hello ...