linux 将内容强制输出到终端

linux 将内容强制输出到终端,例如打印log时,想把部分信息强制输出到终端,可以使用如下方式:

printf "hello" >>/dev/tty

或 

echo "hello" >>/dev/tty