What do pts and tty Mean on Linux? What is the Difference Between The Two Terminal Types?
Posted by alex in Insights at 8:12 PMI have been asked the question numerous times of what PTS and TTY mean in Linux regarding terminals. People ask because they may be newer to Linux and learning how to view a process list they may actually see a serial connection, SSH connection, or a telnet connection in the process list that might show something like pts/0, pts/2, tty1, or tty2 in the TTY column. Most processes will just have a question mark in this column but if something is connected to an actual terminal then it will list where it is connected in the TTY column of “ps”.
TTY Definition:
Teletypewriter originally and now also means any terminal on Linux/Unix systems. It also means any serial port on Unix/Linux systems.
PTS Definition:
Stands for pseudo terminal slave.
The difference between TTY and PTS is the type of connection to the computer. TTY ports are direct connections to the computer such as a keyboard/mouse or a serial connection to the device. PTS connections are SSH connections or telnet connections. All of these connections can connect to a shell which will allow you to issue commands to the computer.
|
|
|
|
Related posts:
- Use Multiple Shells From One Terminal Window on Linux You can use the Linux screen command to operate multiple...
- How to Reset a Serial Port in Linux, ttyS0, ttyAM0, etc. When connecting to a Linux device using a serial port...
- The Linux Kill Command Explained in Detail The Linux kill command is used to kill PID’s or...
- Add a SSH Key to Your Github Account for a Linux Server Adding an SSH key to your github.com account for a...
- How to Change Timezone on Linux Changing the timezone on Linux is easy. The timezone within...











Entries (RSS)