Use current TTY in Linux
Find current TTY
tty
Duplicate output when using pipe
echo testing message | tee `tty` | more
Note: Some cases, tty
might not reply correctly when sub shell created in command line. In this case, better save tty in variable before execute into sub shell.