The tty tag has no wiki summary.
232
votes
4answers
40k views
What is the exact difference between a 'terminal', a 'shell', a 'tty' and a 'console'?
I think these terms almost refer to the same thing, when used loosely:
terminal
shell
tty
console
What exactly do each of these terms refer to?
7
votes
1answer
128 views
“w | tail” chops text at right margin (78 characters)
Summary: w | tail chops rows after 78th column.
When I run the "w" command, it works as expected. However, when I pipe the output to "tail", it chops the output to 78 columns wide (truncates anything ...
0
votes
1answer
30 views
How to set default console keyboard layout in Arch Linux?
Whenever I reboot my computer I have to set the keyboard layout in a console again with loadkeys.
Is there a way to change the default keyboard layout that is loaded everytime the computer boots?
3
votes
1answer
38 views
Can I access X11's clipboard from tty1-6?
Sometimes, when I'm running on battery and don't need a window manager, I'll log into tty1, fire up fbterm and Vim and work. Later, if I need the window manager, I'll use the log in GUI but switch ...
4
votes
0answers
47 views
Is there a way to mirror USB outputs?
I'm currently writing a program for a project.
It is for a braille reading system where I have a braille display connected via USB that is controlled by a program called brltty.
One of the ...
1
vote
2answers
44 views
/dev/console points to tty0?
I've been trying to understand the /dev/console device, but there are a few things I'm not clear on:
What is the purpose of this device? From what I can gather it's just a place for the kernel to ...
3
votes
2answers
49 views
Reading from a serial interface
I have a serial device running which I need to read data from(I have absolutely no control over the device itself) except reading its output; using hyper terminal in Windows I am able to detect a ...
23
votes
2answers
923 views
Can a terminal emulator be as fast as TTY 1-6?
I've been trying various terminal emulators lately, from the built-in gnome-terminal, aterm, xterm, wterm, to rxvt. The test I've been doing is in this order:
Open up a tmux window with 2 panes
The ...
0
votes
2answers
25 views
How to launch a program in text only mode if it support silent running
I have got a java program, which support text file input and auto running, can i put it in background running without GUI ?
It prompt cannot set display.
while there is no concern to view the ...
6
votes
1answer
436 views
How do I use a font in .ttc format as the console font?
I rather dislike the available tty fonts and would rather use Menlo, which is what I use in OS X's Terminal. Menlo is in a .ttc format, but (from the contents of /usr/share/consolefonts) Linux seems ...
3
votes
3answers
367 views
Enabling Numeric Keypad
I have trouble with the numeric keypad (NumLock keys) being unusable while typing.
While I don't think it's GUI specific, this happens both in Gnome and KDE. Sometimes it works in TTY, other times it ...
1
vote
1answer
92 views
How to disable messages in unix if mesg and chgrp not allowed?
This is one of my questions for my exam ..
We are not supposed to use mesg y/n for this but we should effectively avoid mesgs along with the problem of not being able to change groups.
2
votes
1answer
712 views
how to re-enable input on a serial console
I have an old router which runs Linux and I'd like to have a serial console on. This used to work fine, but after a firmware update, I can now only get output on the console and cannot give any input ...
1
vote
1answer
468 views
Endless data loop from dev/ttyUSB while sending AT commands
I have problem sending AT commands to my USB modem.
At first I tried php-serial class, but when i was reading data, I got endless loop with strange data. Then I tried to debug problem and opened putty ...
0
votes
0answers
16 views
Virtual TTY jumps to the next on launching from the Openbox menu
When I launch a terminal from my Openbox menu my virtual terminal TTY jumps to the next CtrlAltF12 slot.
It seems that this problem appeared after I wanted some more than 7 TTYs and added some to ...
8
votes
2answers
977 views
set baud speed for tty
How do I set the baud speed for a specific tty (in this case a serial port)? I tried using
stty -F /dev/tty.iap ispeed 19200
But get the error Invalid argument for every speed I try (2400, 4800, ...
4
votes
2answers
114 views
How can I hook on to one terminal's output from another terminal?
I need to hook onto output of currently running terminal (tty1) from virtual terminal and capture it (running X server).
I'm pretty sure such a thing is possible by simpler means than debugging ...
5
votes
2answers
2k views
Poor TTY resolution with nVidia driver
The resolution of the TTY1-6 is poor ~ 640×480
Ubuntu 11.10 | Grub2 | nVidia | NVIDIA GT215 Board
I went through the process on this site and after the edit the GRUB menu appears in the correct ...
2
votes
1answer
90 views
Getting no tty present and no askpass program specified when using git over ssh
I'm trying to push a git commit from my laptop to my server but keep getting the following error message:
remote: sudo: no tty present and no askpass program specified
To ...
1
vote
1answer
62 views
What are TTYs >12 used for?
Related to TTY numbers, it looks like there are 64 TTYs (find /dev -name 'tty[0-9]*' | cut -c 9- | sort -n | tail -n 1 and documentation). tty0 is the current virtual console, Ctrl+Meta+F1 reports ...
0
votes
1answer
48 views
What are the different virtual TTY numbers used for?
It seems by default (at least on Ubuntu, but I think I saw the same on other distros) there are virtual TTYs 1-6 for text login, 7 for GUI login, and 8 upwards are unused or at least non-interactive ...
12
votes
2answers
2k views
Linux: Difference between /dev/console , /dev/tty and /dev/tty0
On a Linux system, what is the difference between /dev/console , /dev/tty and /dev/tty0 ?
What is their respective use? How do they compare?
2
votes
1answer
32 views
How to rebind XON/XOFF keys?
I put stty -ixon -ixoff in my .bashrc so I can use Control+S to search the bash history forward (here there is a text about it). However, I sometimes used Control+S to really send the XOFF signal to ...
7
votes
2answers
567 views
Rebinding/disabling CTRL+ALT+F#
I have an application that binds CTRL+ALT+F7, but my linux machine seems to catch the keystroke.
Is there a way to rebind/disable this key? A recompile of the kernel is an acceptable answer.
The ...
6
votes
1answer
141 views
What should interactive shells do in orphaned process groups?
(Re-posting in unix per the suggestion in http://stackoverflow.com/questions/13718394/what-should-interactive-shells-do-in-orphaned-process-groups)
The short question is, what should a shell do if it ...
1
vote
2answers
68 views
Invoke a command/script disconnected from the controlling terminal?
I'm investigating the behaviour of a script that is normally run as an automated process (e.g. cron, Jenkins). The script can (eventually) invoke commands that behave differently (seeking user input) ...
4
votes
2answers
149 views
How can I launch applications from 2 ttys on launch?
I've currently got 2 ttys logging in automatically, but I need to launch a node script from one and a C program from another as soon as the device loads.
The device is a Raspberry Pi running ...
0
votes
1answer
58 views
How to change keyboard speed in the Linux console? [duplicate]
When I press Ctrl + Alt + F1 the desktop environment disappears and a terminal window appears. Pressing Ctrl + Alt + F7 brings me back to DE.
This terminal is useful when the DE hangs for some reason ...
6
votes
2answers
247 views
Arch Linux how to close tty
I've opened several ttys and I don't know what key combination to use to close a tty. I'm using Arch Linux.
4
votes
3answers
262 views
Construct a command by putting a string into a tty
I managed to do this
echo -n "command" > /dev/tty1
The letters appear, and the cursor moves, but they are "ghosts" - if you hit enter, nothing happens (they are not in stdin).
Edit:
In the ...
1
vote
1answer
108 views
Start IceWM from the command line *and* get sound working?
So, I hate window managers. I hate them all.
My current distribution is Ubuntu 12.04. Here is my /etc/init/lightdm.conf:
# LightDM - light Display Manager
#
# The display manager service manages ...
2
votes
1answer
349 views
Is it okay to disable requiretty?
I'm trying to set up a deploy script using Capistrano At a step cap deploy:setup script is connecting to my server and trying to run commands that create directories. Then I see an error: msudo: ...
1
vote
1answer
103 views
Can I use xterm to read/write to a pts without spawning another process (e.g a shell)?
I have a process which reads and writes to a pseudo terminal. I would like to open xterm and have it open a pseudo terminal and leave it open so I can communicate with this process without creating ...
5
votes
3answers
188 views
Create Null Modem Pair linux
I am looking to create virtual serial ports on Debian 6 squeeze. Basic requirements are:
be able to connect as if port was a real serial port( IE be able to set baud, stop bits etc)
com port pairs ...
24
votes
1answer
429 views
What happens when Ctrl + Alt + F<Num> is pressed?
I am looking for an explanation of what happens in Linux when this key combination is pressed to change the current terminal. In particular, what software component intercepts this key combination and ...
3
votes
2answers
643 views
How to script /etc/issue?
I would like to pipe my tty number through figlet (ASCII generator) for the /etc/issue (message shown before login). Obviously this means I can't just update it from /etc/rc.local.
On my system ...
3
votes
2answers
87 views
Hash symbol on a teletype
My issue is a bit unusual, so I want to provide a short background. I was looking at old winners of the International Obfucated C Code Contest, and came across an entry written for the PDP-11 (the ...
2
votes
0answers
42 views
Controlling ppp's chat buffering
I looked at the ppp chat source and it uses putchar to write to the device. When PPP is run over a line discipline like n_gsm, which multiplexes a tty via the GSM 07.10 protocol, a lot of extra data ...
1
vote
3answers
338 views
What's the difference between these ways of accessing the shell?
From what I know it seems that there are many ways to access the shell on Linux. So far the methods I know are:
To use a program such as Terminal or Konsole
To use the shortcuts CTRL + ALT + F1-6
To ...
2
votes
2answers
284 views
Why are there so many virtual terminal devices?
I've been reading the advanced linux programming book availalble free online linky and it mentiones about virtual terminals which if I understood it correctly it is a Linux specific feature (not in ...
2
votes
1answer
120 views
Does each user get his/her own tty(s)?
I put a simple echo command in a CLI tty by user1 expecting it to reach user2 who is logged in a separate tty.
echo "Hello, world!" >> /dev/tty5
I expected user2 to get the echo message but ...
12
votes
1answer
416 views
Screenshot of X from tty
Using Xvfb I can launch an application and take a screenshot.
What I'm wondering about is how to capture from an existing (dormant) X session.
Say from tty or over ssh.
From what I understand ...
4
votes
3answers
774 views
How to clear terminal after logging out?
Currently on my laptop when I log out I can still see traces of my last activities (in tty). How can I tell it (Gentoo) to clear the screen before logging out?
1
vote
0answers
162 views
Arch Linux not functional after kernel upate [duplicate]
Possible Duplicate:
Arch Linux not booting after system update
After running a system update, in which the kernel was updated, when I try to boot Arch (in single user, not quiet), I get the ...
3
votes
1answer
144 views
Preserve scroll on Linux console switch [duplicate]
Possible Duplicate:
How do I ensure that a terminal remains scrollable?
I've configured really sweet keystrokes for switching between, and scrolling in, a tty (the Linux console). But, as ...
3
votes
0answers
159 views
stty before login
We've got some HP-UX Integrity VMs that are difficult to log in to at the console because the KILL character is set to @, which also happens to be a component of some passwords. Now I know we can get ...
2
votes
0answers
550 views
Ctrl-Alt-F1 not working from X
I have a system running Debian 5.0 that doesn't respond to Ctrl-Alt-F# (1-6)
Check if Ctrl, Alt, F1 and F2 are intercepted correctly...
$ DISPLAY=:0 xwininfo
xwininfo: Please select the window ...
3
votes
2answers
181 views
why slight delay after failed login in tty [duplicate]
Possible Duplicate:
Why a wrong password gives a big delay
Whenever I mistype my password when logging in in a tty, I have noticed that I have to wait for a second before I'm able to log in ...
1
vote
1answer
115 views
Need help on setting up tty autologin on FreeBSD
I was trying to setup tty auto login for FreeBSD, I copied the P|Pc|Pc part and made a change:
Pcal console:\
:al=root:ht:np:sp#9600
And modify the tty for ttyv0:
ttyv0 "/usr/libexec/getty Pcal" ...
0
votes
2answers
243 views
is it possible to run job in foreground after user logout
I have some job to run which need be attached to terminal (or in foreground). The job is run in remote servers, and needs keep running after the users logout. I am aware of vnc server, however, I want ...


