what is tty name
/dev/tty is a special file, representing the terminal for the current process. So, when you, your message ('1') will appear on your screen. Likewise, when you cat /dev/tty, your subsequent input gets duplicated (until you press Ctrl-C).