In: Computer Science
write code to display "Hello terminal." On the terminal device with a name /dev/pts/1.
/dev/pts is a pseudo-terminal. Terminals are of two types:
1. hardware terminal or tty
2. pseudo terminal or pty
Hardware terminals are actual terminals connected physically to the serial port.
When using such an application, the terminal the data is routed
to a pseudoterminal. It is named as /deve/pts
1 denotes the terminal number.
The following is a valid code to display "hello terminal" on /dev/pts/1
First connect to a pseudo terminal such as xterm, telnetd, etc then run the following code:
echo Hello terminal > /dev/pts/1