Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pts]

The tag has no usage guidance.

12
votes
2answers
2k views

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

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

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("/...
0
votes
1answer
104 views

Linux ssh connection without pts

I'm connecting to my server using JSCH and I can't find the login user with the following commands : who w I found that it's not connected as pts : # netstat -tuplena | grep :22 ...... 14918/...
-1
votes
2answers
255 views

documentation on ptmx and pts [closed]

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

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
votes
1answer
320 views

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

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) [...
0
votes
2answers
252 views

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 ...
0
votes
1answer
22 views

who and w report my user ten times..but I have only four pts open

The command w said 02:50:35 up 20:54, 10 users, load average: 1,07, 1,29, 1,41 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT myuser :0 - lun05 ?xdm? 1:...