Questions tagged [pts]
20 questions
20
votes
2 answers
What is `/dev/console` used for?
From this answer to Linux: Difference between /dev/console , /dev/tty and /dev/tty0
From the
documentation:
/dev/tty Current TTY device
/dev/console System console
/dev/tty0 Current virtual console
In the good old days /dev/console was…
Tim
- 98,580
- 191
- 570
- 977
3
votes
1 answer
read(2) blocking behaviour changes when pts is closed resulting in read() returning error: -1 (EIO)
I'm trying to figure out how I can reliably loop a read on a pt master I have.
I open the ptmx, grant and unlock it as per usual:
* ptmx stuff */
/* get the master (ptmx) */
int32_t masterfd = open("/dev/ptmx", O_RDWR | O_NOCTTY);
if(masterfd < 0){
…
Supernovah
- 143
- 6
3
votes
2 answers
w command doesn't show all pseudo-terminal sessions
If I open terminal and execute w command then it will show:
user tty7 :0 12:04 39:56 36.87s 0.06s /sbin/upstart -
Now if open terminator or xterm and execute w command then it will show it's entry in the output of w command…
Prvt_Yadav
- 5,732
- 7
- 32
- 48
2
votes
1 answer
identify process sending a signal to a shell script
I've written a shell script that uses the trap feature to output its progress when it receives a SIGUSR1 signal, but I don't see how to have the script be able to output the progress to the STDOUT of the process which sent the signal. So, if the…
user1404316
- 3,028
- 12
- 23
2
votes
0 answers
Associating pts and tty to a process
I am trying to find out which tty or pts is being run by which process.
My research so far is that:
tty is a kernel or backend terminal to handle lower level stuffs
pts is a pesudo terminal to allow user to communicate with the system
there are a…
user357066
- 65
- 1
- 5
2
votes
3 answers
How can we find out the pseudoterminal master and slave from each other?
A pseudoterminal has a pair of master and slave.
How can we find out the master device file from a slave device file (e.g. /etc/pts/3)? I only find /dev/ptmx and /dev/pts/ptmx, but they can't be shared by multiple slaves.
Given one of the processes…
Tim
- 98,580
- 191
- 570
- 977
2
votes
1 answer
Is this output from “who -a” normal?
This does not look normal to me:
who -a
system boot 2018-09-04 11:59
LOGIN tty1 2018-09-04 11:59 685 id=tty1
run-level 5 2018-09-04 11:59
user + pts/0 2018-09-04 20:39 . 19612…
somethingSomething
- 5,721
- 18
- 58
- 98
1
vote
1 answer
Why dmesg output displayed on /dev/tty1
This is still related to my yesterday thread, so there's alert or maybe it's just log that displayed on my terminal on /dev/tty1. Ofcourse it's annoying because it's displayed in my bash prompt, so whenever I want input something, my input has been…
Muhammad Ikhwan Perwira
- 247
- 1
- 2
- 10
1
vote
1 answer
ssh pseudoterminal special character problems
So I have the following situation: I have a host that exhibits unexpected behavior when using ssh -t combined with tmux.
If I call ssh -t my-problem-host tmux non-ascii characters (e.g. €) are displayed as _. If I connect without calling tmux, there…
Joseph Dalton
- 11
- 1
1
vote
1 answer
Is `/dev/tty7` not directly accessible to Ubuntu users?
On Ubuntu, /dev/tty7 is the virtual console for desktop GUI.
Is the only way to access /dev/tty7 to use chvt 7 or Ctrl+Alt+F7?
Besides that, is /dev/tty7 not directly accessible to Ubuntu users, but indirectly via other emulations of terminals…
Tim
- 98,580
- 191
- 570
- 977
1
vote
1 answer
documentation on ptmx and pts
I am want to stream a linux terminal to my own program, and as far as I understand this is done by opening /dev/ptmx to start a new pts, I have tested this and this does indeed work (it creates a new file in /dev/pts). But I am not sure how I am…
TT-392
- 127
- 6
1
vote
1 answer
How to restrict a user from using tty?
i was wondering if it is possible to force log out a user (anyone other than root) when trying to login via tty (ctrl+tab+f1/f2/f3..). The user should be able to use pts with no problems.
Using CentOS 7.
Harish Agadi
- 21
- 1
- 2
1
vote
1 answer
How to remove sshd pts processes in status D without restarting servers
Why are these sshd-pts processes stuck in status D? It seems the system load averages are increasing due to these processes. How can I remove them without restarting my server.
(add ppid and etime)
[root@manager ~]# ps -eo…
Wenyi Li
- 11
- 2
0
votes
1 answer
Restore default permissions on /dev/pts
Hey guys I tried to activate multiuser for some screens so I used
screen -A -m -d -S test
screen -S stest -X multiuser on
screen -S test -X acladd testuser
But I got
chmod /dev/pts/17: Permission denied
Unfortunately I thought it would be a great…
Markus
- 3
- 1
0
votes
2 answers
screen /dev/pts/ of a VM never has correct stty settings
A virtual machine (using linux+kvm+qemu) is setup to provided a serial port for a terminal, which is made available via a pseudo-terminal, some random /dev/pts/
I use screen as a way to interact with /dev/pts/, as it has proven…
fraleone
- 737
- 2
- 9
- 21